Bug 895036 - Lower the SkiaGL texture cache size r=gwright
authorJames Willcox <jwillcox@mozilla.com>
Tue, 09 Jul 2013 16:12:49 -0400
changeset 139177 ad853510b4d5ad26254efd2faa7a80112d69791b
parent 139176 b3d8eb2515762b43bf2d2e9b42df39ab4a87f474
child 139178 fbdfcb52c475b98af44d26ce282143682ddca132
push id31266
push userjwillcox@mozilla.com
push dateFri, 19 Jul 2013 02:34:02 +0000
treeherdermozilla-inbound@4303c1af09f6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgwright
bugs895036
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 895036 - Lower the SkiaGL texture cache size r=gwright
gfx/2d/DrawTargetSkia.cpp
--- a/gfx/2d/DrawTargetSkia.cpp
+++ b/gfx/2d/DrawTargetSkia.cpp
@@ -654,16 +654,17 @@ DrawTargetSkia::InitWithGLContextAndGrGL
 
   mGrGLInterface = aGrGLInterface;
   mGrGLInterface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(this);
 
   GrBackendContext backendContext = reinterpret_cast<GrBackendContext>(aGrGLInterface);
   SkAutoTUnref<GrContext> gr(GrContext::Create(kOpenGL_GrBackend, backendContext));
   mGrContext = gr.get();
 
+  mGrContext->setTextureCacheLimits(128, 1024*1024*16);
 
   GrBackendRenderTargetDesc targetDescriptor;
 
   targetDescriptor.fWidth = mSize.width;
   targetDescriptor.fHeight = mSize.height;
   targetDescriptor.fConfig = GfxFormatToGrConfig(mFormat);
   targetDescriptor.fOrigin = kBottomLeft_GrSurfaceOrigin;
   targetDescriptor.fSampleCnt = 0;