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

Side by Side Diff: include/gpu/SkGpuDevice.h

Issue 408923002: Add auto purging for SkPicture-related Ganesh resources (esp. layers) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix comment Created 6 years, 5 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
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkCanvas.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 class SkAutoCachedTexture; // used internally 136 class SkAutoCachedTexture; // used internally
137 137
138 138
139 protected: 139 protected:
140 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OV ERRIDE; 140 virtual bool onReadPixels(const SkImageInfo&, void*, size_t, int, int) SK_OV ERRIDE;
141 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE; 141 virtual bool onWritePixels(const SkImageInfo&, const void*, size_t, int, int ) SK_OVERRIDE;
142 142
143 /** PRIVATE / EXPERIMENTAL -- do not call */ 143 /** PRIVATE / EXPERIMENTAL -- do not call */
144 virtual void EXPERIMENTAL_optimize(const SkPicture* picture) SK_OVERRIDE; 144 virtual void EXPERIMENTAL_optimize(const SkPicture* picture) SK_OVERRIDE;
145 /** PRIVATE / EXPERIMENTAL -- do not call */ 145 /** PRIVATE / EXPERIMENTAL -- do not call */
146 virtual void EXPERIMENTAL_purge(const SkPicture* picture) SK_OVERRIDE;
147 /** PRIVATE / EXPERIMENTAL -- do not call */
148 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture) SK_OVERRIDE; 146 virtual bool EXPERIMENTAL_drawPicture(SkCanvas* canvas, const SkPicture* pic ture) SK_OVERRIDE;
149 147
150 private: 148 private:
151 GrContext* fContext; 149 GrContext* fContext;
152 150
153 GrSkDrawProcs* fDrawProcs; 151 GrSkDrawProcs* fDrawProcs;
154 152
155 GrClipData fClipData; 153 GrClipData fClipData;
156 154
157 GrTextContext* fMainTextContext; 155 GrTextContext* fMainTextContext;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 bool bicubic); 212 bool bicubic);
215 213
216 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 214 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
217 215
218 static SkPicture::AccelData::Key ComputeAccelDataKey(); 216 static SkPicture::AccelData::Key ComputeAccelDataKey();
219 217
220 typedef SkBaseDevice INHERITED; 218 typedef SkBaseDevice INHERITED;
221 }; 219 };
222 220
223 #endif 221 #endif
OLDNEW
« no previous file with comments | « include/core/SkPicture.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698