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

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

Issue 414483003: Implement a persistent uniqueID-based cache for SkImageFilter. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Fix cross-process issue (revert those changes to HEAD^^) Created 6 years, 4 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/SkReadBuffer.h ('k') | src/core/SkBitmapDevice.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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 // remove when our clients don't rely on accessBitmap() 162 // remove when our clients don't rely on accessBitmap()
163 SkBitmap fLegacyBitmap; 163 SkBitmap fLegacyBitmap;
164 164
165 // called from rt and tex cons 165 // called from rt and tex cons
166 void initFromRenderTarget(GrContext*, GrRenderTarget*, unsigned flags); 166 void initFromRenderTarget(GrContext*, GrRenderTarget*, unsigned flags);
167 167
168 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; 168 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE;
169 169
170 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; 170 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE;
171 171
172 virtual SkImageFilter::UniqueIDCache* getImageFilterCache() SK_OVERRIDE;
173
172 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override 174 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override
173 // SkDraw's matrix and draw in device coords. 175 // SkDraw's matrix and draw in device coords.
174 void prepareDraw(const SkDraw&, bool forceIdentity); 176 void prepareDraw(const SkDraw&, bool forceIdentity);
175 177
176 /** 178 /**
177 * Implementation for both drawBitmap and drawBitmapRect. 179 * Implementation for both drawBitmap and drawBitmapRect.
178 */ 180 */
179 void drawBitmapCommon(const SkDraw&, 181 void drawBitmapCommon(const SkDraw&,
180 const SkBitmap& bitmap, 182 const SkBitmap& bitmap,
181 const SkRect* srcRectPtr, 183 const SkRect* srcRectPtr,
(...skipping 30 matching lines...) Expand all
212 bool bicubic); 214 bool bicubic);
213 215
214 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 216 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
215 217
216 static SkPicture::AccelData::Key ComputeAccelDataKey(); 218 static SkPicture::AccelData::Key ComputeAccelDataKey();
217 219
218 typedef SkBaseDevice INHERITED; 220 typedef SkBaseDevice INHERITED;
219 }; 221 };
220 222
221 #endif 223 #endif
OLDNEW
« no previous file with comments | « include/core/SkReadBuffer.h ('k') | src/core/SkBitmapDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698