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

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

Issue 587793003: enable conservative clips for gpudevice (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 | « samplecode/SampleApp.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 /* 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 155
156 // temporarily change the return to false, until we understand the issues wi th filters and persp 156 // temporarily change the return to false, until we understand the issues wi th filters and persp
157 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return false; } 157 virtual bool forceConservativeRasterClip() const SK_OVERRIDE { return true; }
158 158
159 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override 159 // sets the render target, clip, and matrix on GrContext. Use forceIdenity t o override
160 // SkDraw's matrix and draw in device coords. 160 // SkDraw's matrix and draw in device coords.
161 void prepareDraw(const SkDraw&, bool forceIdentity); 161 void prepareDraw(const SkDraw&, bool forceIdentity);
162 162
163 /** 163 /**
164 * Implementation for both drawBitmap and drawBitmapRect. 164 * Implementation for both drawBitmap and drawBitmapRect.
165 */ 165 */
166 void drawBitmapCommon(const SkDraw&, 166 void drawBitmapCommon(const SkDraw&,
167 const SkBitmap& bitmap, 167 const SkBitmap& bitmap,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 bool bicubic); 199 bool bicubic);
200 200
201 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint); 201 bool drawDashLine(const SkPoint pts[2], const SkPaint& paint);
202 202
203 static SkPicture::AccelData::Key ComputeAccelDataKey(); 203 static SkPicture::AccelData::Key ComputeAccelDataKey();
204 204
205 typedef SkBaseDevice INHERITED; 205 typedef SkBaseDevice INHERITED;
206 }; 206 };
207 207
208 #endif 208 #endif
OLDNEW
« no previous file with comments | « samplecode/SampleApp.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698