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

Side by Side Diff: src/utils/SkGatherPixelRefsAndRects.h

Issue 424663006: SkCanvas interface for drawing a patch. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
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 SkGatherPixelRefsAndRects_DEFINED 8 #ifndef SkGatherPixelRefsAndRects_DEFINED
9 #define SkGatherPixelRefsAndRects_DEFINED 9 #define SkGatherPixelRefsAndRects_DEFINED
10 10
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 263
264 this->drawRect(draw, bounds, paint); 264 this->drawRect(draw, bounds, paint);
265 } 265 }
266 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, int vert exCount, 266 virtual void drawVertices(const SkDraw& draw, SkCanvas::VertexMode, int vert exCount,
267 const SkPoint verts[], const SkPoint texs[], 267 const SkPoint verts[], const SkPoint texs[],
268 const SkColor colors[], SkXfermode* xmode, 268 const SkColor colors[], SkXfermode* xmode,
269 const uint16_t indices[], int indexCount, 269 const uint16_t indices[], int indexCount,
270 const SkPaint& paint) SK_OVERRIDE { 270 const SkPaint& paint) SK_OVERRIDE {
271 this->drawPoints(draw, SkCanvas::kPolygon_PointMode, vertexCount, verts, paint); 271 this->drawPoints(draw, SkCanvas::kPolygon_PointMode, vertexCount, verts, paint);
272 } 272 }
273 virtual void drawPatch(const SkDraw&, const SkPatch& patch, const SkPaint& p aint) SK_OVERRIDE {
274 //TODO
275 }
273 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y, 276 virtual void drawDevice(const SkDraw&, SkBaseDevice*, int x, int y,
274 const SkPaint&) SK_OVERRIDE { 277 const SkPaint&) SK_OVERRIDE {
275 NothingToDo(); 278 NothingToDo();
276 } 279 }
277 // TODO: allow this call to return failure, or move to SkBitmapDevice only. 280 // TODO: allow this call to return failure, or move to SkBitmapDevice only.
278 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE { 281 virtual const SkBitmap& onAccessBitmap() SK_OVERRIDE {
279 return fEmptyBitmap; 282 return fEmptyBitmap;
280 } 283 }
281 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } 284 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); }
282 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } 285 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 static void NotSupported() { 320 static void NotSupported() {
318 SkDEBUGFAIL("this method should never be called"); 321 SkDEBUGFAIL("this method should never be called");
319 } 322 }
320 323
321 static void NothingToDo() {} 324 static void NothingToDo() {}
322 325
323 typedef SkBaseDevice INHERITED; 326 typedef SkBaseDevice INHERITED;
324 }; 327 };
325 328
326 #endif // SkGatherPixelRefsAndRects_DEFINED 329 #endif // SkGatherPixelRefsAndRects_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698