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

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

Issue 554033003: Revert of allow canvas to force conservative clips (for speed) (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 3 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/SkDevice.h ('k') | include/utils/SkNoSaveLayerCanvas.h » ('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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // remove when our clients don't rely on accessBitmap() 145 // remove when our clients don't rely on accessBitmap()
146 SkBitmap fLegacyBitmap; 146 SkBitmap fLegacyBitmap;
147 147
148 SkGpuDevice(GrSurface*, unsigned flags = 0); 148 SkGpuDevice(GrSurface*, unsigned flags = 0);
149 149
150 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE; 150 virtual SkBaseDevice* onCreateDevice(const SkImageInfo&, Usage) SK_OVERRIDE;
151 151
152 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; 152 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE;
153 153
154 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE; 154 virtual SkImageFilter::Cache* getImageFilterCache() SK_OVERRIDE;
155 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true; }
156 155
157 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override 156 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override
158 // SkDraw's matrix and draw in device coords. 157 // SkDraw's matrix and draw in device coords.
159 void prepareDraw(const SkDraw&, bool forceIdentity); 158 void prepareDraw(const SkDraw&, bool forceIdentity);
160 159
161 /** 160 /**
162 * Implementation for both drawBitmap and drawBitmapRect. 161 * Implementation for both drawBitmap and drawBitmapRect.
163 */ 162 */
164 void drawBitmapCommon(const SkDraw&, 163 void drawBitmapCommon(const SkDraw&,
165 const SkBitmap& bitmap, 164 const SkBitmap& bitmap,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 bool bicubic); 196 bool bicubic);
198 197
199 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 198 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
200 199
201 static SkPicture::AccelData::Key ComputeAccelDataKey(); 200 static SkPicture::AccelData::Key ComputeAccelDataKey();
202 201
203 typedef SkBaseDevice INHERITED; 202 typedef SkBaseDevice INHERITED;
204 }; 203 };
205 204
206 #endif 205 #endif
OLDNEW
« no previous file with comments | « include/core/SkDevice.h ('k') | include/utils/SkNoSaveLayerCanvas.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698