From e930a075625d3d90c023c2570a6a4cae1a4b484f Mon Sep 17 00:00:00 2001 From: "robertphillips@google.com" Date: Thu, 3 Apr 2014 00:34:27 +0000 Subject: Add a GrLayerCache to GrContext https://codereview.chromium.org/217343006/ git-svn-id: http://skia.googlecode.com/svn/trunk@14038 2bbb7eff-a529-9590-31e7-b0007b416f81 --- src/gpu/SkGpuDevice.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/gpu/SkGpuDevice.cpp') diff --git a/src/gpu/SkGpuDevice.cpp b/src/gpu/SkGpuDevice.cpp index 052e6691a4..ee4850fa9b 100644 --- a/src/gpu/SkGpuDevice.cpp +++ b/src/gpu/SkGpuDevice.cpp @@ -14,6 +14,7 @@ #include "GrContext.h" #include "GrBitmapTextContext.h" #include "GrDistanceFieldTextContext.h" +#include "GrLayerCache.h" #include "GrPictureUtils.h" #include "SkGrTexturePixelRef.h" @@ -2033,7 +2034,9 @@ bool SkGpuDevice::EXPERIMENTAL_drawPicture(SkPicture* picture) { SkDebugf("Need SaveLayers: "); for (int i = 0; i < gpuData->numSaveLayers(); ++i) { if (pullForward[i]) { - SkDebugf("%d, ", i); + const GrAtlasedLayer* layer = fContext->getLayerCache()->findLayerOrCreate(picture, i); + + SkDebugf("%d (%d), ", i, layer->layerID()); } } SkDebugf("\n"); -- cgit v1.2.3