Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(302)

Side by Side Diff: src/gpu/SkGpuDevice.cpp

Issue 217343006: Add a GrLayerCache to GrContext (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fixed compiler complaint Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/gpu/GrLayerCache.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "SkGpuDevice.h" 8 #include "SkGpuDevice.h"
9 9
10 #include "effects/GrBicubicEffect.h" 10 #include "effects/GrBicubicEffect.h"
11 #include "effects/GrTextureDomain.h" 11 #include "effects/GrTextureDomain.h"
12 #include "effects/GrSimpleTextureEffect.h" 12 #include "effects/GrSimpleTextureEffect.h"
13 13
14 #include "GrContext.h" 14 #include "GrContext.h"
15 #include "GrBitmapTextContext.h" 15 #include "GrBitmapTextContext.h"
16 #include "GrDistanceFieldTextContext.h" 16 #include "GrDistanceFieldTextContext.h"
17 #include "GrLayerCache.h"
17 #include "GrPictureUtils.h" 18 #include "GrPictureUtils.h"
18 19
19 #include "SkGrTexturePixelRef.h" 20 #include "SkGrTexturePixelRef.h"
20 21
21 #include "SkBounder.h" 22 #include "SkBounder.h"
22 #include "SkColorFilter.h" 23 #include "SkColorFilter.h"
23 #include "SkDeviceImageFilterProxy.h" 24 #include "SkDeviceImageFilterProxy.h"
24 #include "SkDrawProcs.h" 25 #include "SkDrawProcs.h"
25 #include "SkGlyphCache.h" 26 #include "SkGlyphCache.h"
26 #include "SkImageFilter.h" 27 #include "SkImageFilter.h"
(...skipping 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after
2026 if (ops.offset(i) > info.fSaveLayerOpID && ops.offset(i) < info.fRes toreOpID) { 2027 if (ops.offset(i) > info.fSaveLayerOpID && ops.offset(i) < info.fRes toreOpID) {
2027 pullForward[j] = true; 2028 pullForward[j] = true;
2028 } 2029 }
2029 } 2030 }
2030 } 2031 }
2031 2032
2032 #ifdef SK_PRINT_PULL_FORWARD_INFO 2033 #ifdef SK_PRINT_PULL_FORWARD_INFO
2033 SkDebugf("Need SaveLayers: "); 2034 SkDebugf("Need SaveLayers: ");
2034 for (int i = 0; i < gpuData->numSaveLayers(); ++i) { 2035 for (int i = 0; i < gpuData->numSaveLayers(); ++i) {
2035 if (pullForward[i]) { 2036 if (pullForward[i]) {
2036 SkDebugf("%d, ", i); 2037 const GrAtlasedLayer* layer = fContext->getLayerCache()->findLayerOr Create(picture, i);
2038
2039 SkDebugf("%d (%d), ", i, layer->layerID());
2037 } 2040 }
2038 } 2041 }
2039 SkDebugf("\n"); 2042 SkDebugf("\n");
2040 #endif 2043 #endif
2041 2044
2042 return false; 2045 return false;
2043 } 2046 }
OLDNEW
« no previous file with comments | « src/gpu/GrLayerCache.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698