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

Side by Side Diff: include/core/SkCanvas.h

Issue 988413003: Change device creation to see the (optional) layer-paint (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: address comments Created 5 years, 9 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 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
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 SkCanvas_DEFINED 8 #ifndef SkCanvas_DEFINED
9 #define SkCanvas_DEFINED 9 #define SkCanvas_DEFINED
10 10
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 1314
1315 // internal methods are not virtual, so they can safely be called by other 1315 // internal methods are not virtual, so they can safely be called by other
1316 // canvas apis, without confusing subclasses (like SkPictureRecording) 1316 // canvas apis, without confusing subclasses (like SkPictureRecording)
1317 void internalDrawBitmap(const SkBitmap&, const SkMatrix& m, const SkPaint* p aint); 1317 void internalDrawBitmap(const SkBitmap&, const SkMatrix& m, const SkPaint* p aint);
1318 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, 1318 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src,
1319 const SkRect& dst, const SkPaint* paint, 1319 const SkRect& dst, const SkPaint* paint,
1320 DrawBitmapRectFlags flags); 1320 DrawBitmapRectFlags flags);
1321 void internalDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center, 1321 void internalDrawBitmapNine(const SkBitmap& bitmap, const SkIRect& center,
1322 const SkRect& dst, const SkPaint* paint); 1322 const SkRect& dst, const SkPaint* paint);
1323 void internalDrawPaint(const SkPaint& paint); 1323 void internalDrawPaint(const SkPaint& paint);
1324 void internalSaveLayer(const SkRect* bounds, const SkPaint* paint, 1324 void internalSaveLayer(const SkRect* bounds, const SkPaint*, SaveFlags, Save LayerStrategy);
1325 SaveFlags, bool justForImageFilter, SaveLayerStrategy strategy);
1326 void internalDrawDevice(SkBaseDevice*, int x, int y, const SkPaint*); 1325 void internalDrawDevice(SkBaseDevice*, int x, int y, const SkPaint*);
1327 1326
1328 // shared by save() and saveLayer() 1327 // shared by save() and saveLayer()
1329 void internalSave(); 1328 void internalSave();
1330 void internalRestore(); 1329 void internalRestore();
1331 static void DrawRect(const SkDraw& draw, const SkPaint& paint, 1330 static void DrawRect(const SkDraw& draw, const SkPaint& paint,
1332 const SkRect& r, SkScalar textSize); 1331 const SkRect& r, SkScalar textSize);
1333 static void DrawTextDecorations(const SkDraw& draw, const SkPaint& paint, 1332 static void DrawTextDecorations(const SkDraw& draw, const SkPaint& paint,
1334 const char text[], size_t byteLength, 1333 const char text[], size_t byteLength,
1335 SkScalar x, SkScalar y); 1334 SkScalar x, SkScalar y);
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
1491 1490
1492 class SkCanvasClipVisitor { 1491 class SkCanvasClipVisitor {
1493 public: 1492 public:
1494 virtual ~SkCanvasClipVisitor(); 1493 virtual ~SkCanvasClipVisitor();
1495 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1494 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1496 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1495 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1497 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1496 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1498 }; 1497 };
1499 1498
1500 #endif 1499 #endif
OLDNEW
« no previous file with comments | « include/core/SkBitmapDevice.h ('k') | include/core/SkDevice.h » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698