のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

purgeInactiveFontDataIfNeeded

    363 void FontCache::purgeInactiveFontDataIfNeeded()
    364 {
	LOGD("< POS > : FontCache::purgeInactiveFontDataIfNeeded "\
	     "ptr=%p Count=%d cMax=%d cTarge=%d",
	     gInactiveFontData, m_purgePreventCount,
	     cMaxInactiveFontData, cTargetInactiveFontData); 

m_purgePreventCountは、0のはず

    365     if (gInactiveFontData && !m_purgePreventCount && gInactiveFontData->size() > cMaxInactiveFontData)
    366         purgeInactiveFontData(gInactiveFontData->size() - cTargetInactiveFontData);
    367 }
12-07 19:07:46.923: D/CoreA(7852): < POS > : ptr=0x7c3b1380 Count=0 cMax=225 cTarget=200
12-07 19:07:46.933: D/CoreA(7852): < POS > : ptr=0x7c3b1380 Count=0 cMax=225 cTarget=200

2a〔+目的語(+away)〕〈汚れ・罪などを〉清め落とす.

prevent―【動詞】防ぐ, 防止する, 予防する.

m_purgePreventCountがカウントされるところ。

    116     void disablePurging() { m_purgePreventCount++; }
    117     void enablePurging()
    118     {
    119         ASSERT(m_purgePreventCount);
    120         if (!--m_purgePreventCount)
    121             purgeInactiveFontDataIfNeeded(); <=ここでしか、この関数は呼ばれない。
    122     }

    149 class FontCachePurgePreventer {
    150 public:
    151     FontCachePurgePreventer() { fontCache()->disablePurging(); }
    152     ~FontCachePurgePreventer() { fontCache()->enablePurging(); }
    153 };

この変数(fontCachePurgePreventer)が消えるとき、m_purgePreventCountがデクリメントされる。
m_purgePreventCountが0になると、purgeInactiveFontDataIfNeeded()が呼ばれる。

FontCachePurgePreventerを使用している場所

  /external/chromium_org/third_party/WebKit/Source/web/
WebFontImpl.cpp 	
  95 FontCachePurgePreventer fontCachePurgePreventer;
 114 FontCachePurgePreventer fontCachePurgePreventer;
 120 FontCachePurgePreventer fontCachePurgePreventer;
 126 FontCachePurgePreventer fontCachePurgePreventer;
PopupListBox.cpp 	
 447 FontCachePurgePreventer fontCachePurgePreventer;
WebViewImpl.cpp 	    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/platform/graphics/
FontCache.h 	
  58 friend class FontCachePurgePreventer;
 149 class FontCachePurgePreventer {
 151 FontCachePurgePreventer() { fontCache()->disablePurging(); }
 152 ~FontCachePurgePreventer() { fontCache()->enablePurging(); }
FontFastPath.cpp 	
 349 FontCachePurgePreventer purgePreventer;
 365 FontCachePurgePreventer purgePreventer;
 381 FontCachePurgePreventer purgePreventer;
 505 FontCachePurgePreventer purgePreventer;
  /external/chromium_org/third_party/WebKit/Source/core/rendering/svg/
RenderSVGText.cpp 	
 179 FontCachePurgePreventer fontCachePurgePreventer;
 303 FontCachePurgePreventer fontCachePurgePreventer;
 321 FontCachePurgePreventer fontCachePurgePreventer;
 543 FontCachePurgePreventer fontCachePurgePreventer;
SVGInlineTextBox.cpp 	
 119 FontCachePurgePreventer fontCachePurgePreventer;
  /external/chromium_org/third_party/WebKit/Source/core/css/
CSSFontFaceSource.cpp 	
 194 FontCachePurgePreventer fontCachePurgePreventer;
  /external/chromium_org/third_party/WebKit/Source/core/platform/
DragImage.cpp 	
 128 FontCachePurgePreventer fontCachePurgePreventer;
  /external/chromium_org/third_party/WebKit/Source/core/rendering/
RenderListBox.cpp 	
 113 FontCachePurgePreventer fontCachePurgePreventer;
 387 FontCachePurgePreventer fontCachePurgePreventer;
RenderMenuList.cpp 	
 170 FontCachePurgePreventer fontCachePurgePreventer;
InlineTextBox.cpp 	
 199 FontCachePurgePreventer fontCachePurgePreventer;
 [all...]
RenderImage.cpp 	
 127 FontCachePurgePreventer fontCachePurgePreventer;
RenderLayerBacking.cpp
  [all...]
  /external/chromium_org/third_party/WebKit/Source/core/html/shadow/
DateTimeEditElement.cpp 	
 496 FontCachePurgePreventer fontCachePurgePreventer;
  /external/chromium_org/third_party/WebKit/Source/core/html/canvas/
CanvasRenderingContext2D.cpp
  [all...]
  /external/chromium_org/third_party/WebKit/Source/core/page/
FrameView.cpp 	    
 [all...]

Completed in 440 milliseconds