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

Side by Side Diff: src/gpu/GrPictureUtils.h

Issue 261663003: First pass at pre-rendering saveLayers for GPU (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Reduce size of PlaybackReplacements in SkPicturePlayback.h Created 6 years, 7 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/core/SkPictureStateTree.cpp ('k') | src/gpu/GrPictureUtils.cpp » ('j') | 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 2014 Google Inc. 2 * Copyright 2014 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 #ifndef GrPictureUtils_DEFINED 8 #ifndef GrPictureUtils_DEFINED
9 #define GrPictureUtils_DEFINED 9 #define GrPictureUtils_DEFINED
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const SaveLayerInfo& saveLayerInfo(int index) const { 61 const SaveLayerInfo& saveLayerInfo(int index) const {
62 SkASSERT(index < fSaveLayerInfo.count()); 62 SkASSERT(index < fSaveLayerInfo.count());
63 63
64 return fSaveLayerInfo[index]; 64 return fSaveLayerInfo[index];
65 } 65 }
66 66
67 // We may, in the future, need to pass in the GPUDevice in order to 67 // We may, in the future, need to pass in the GPUDevice in order to
68 // incorporate the clip and matrix state into the key 68 // incorporate the clip and matrix state into the key
69 static SkPicture::AccelData::Key ComputeAccelDataKey(); 69 static SkPicture::AccelData::Key ComputeAccelDataKey();
70 70
71 protected: 71 private:
72 SkTDArray<SaveLayerInfo> fSaveLayerInfo; 72 SkTDArray<SaveLayerInfo> fSaveLayerInfo;
73 73
74 private:
75 typedef SkPicture::AccelData INHERITED; 74 typedef SkPicture::AccelData INHERITED;
76 }; 75 };
77 76
78 void GatherGPUInfo(SkPicture* pict, GPUAccelData* accelData); 77 void GatherGPUInfo(SkPicture* pict, GPUAccelData* accelData);
79 78
80 #endif // GrPictureUtils_DEFINED 79 #endif // GrPictureUtils_DEFINED
OLDNEW
« no previous file with comments | « src/core/SkPictureStateTree.cpp ('k') | src/gpu/GrPictureUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698