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

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

Issue 2146333004: move responsibility for creating raster-device into pdf (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase Created 4 years, 5 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 | « no previous file | src/core/SkCanvas.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 * 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 1495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1506 * Gets the bounds of the top level layer in global canvas coordinates. We d on't want this 1506 * Gets the bounds of the top level layer in global canvas coordinates. We d on't want this
1507 * to be public because it exposes decisions about layer sizes that are inte rnal to the canvas. 1507 * to be public because it exposes decisions about layer sizes that are inte rnal to the canvas.
1508 */ 1508 */
1509 SkIRect getTopLayerBounds() const; 1509 SkIRect getTopLayerBounds() const;
1510 1510
1511 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src, 1511 void internalDrawBitmapRect(const SkBitmap& bitmap, const SkRect* src,
1512 const SkRect& dst, const SkPaint* paint, 1512 const SkRect& dst, const SkPaint* paint,
1513 SrcRectConstraint); 1513 SrcRectConstraint);
1514 void internalDrawPaint(const SkPaint& paint); 1514 void internalDrawPaint(const SkPaint& paint);
1515 void internalSaveLayer(const SaveLayerRec&, SaveLayerStrategy); 1515 void internalSaveLayer(const SaveLayerRec&, SaveLayerStrategy);
1516 void internalDrawDevice(SkBaseDevice*, int x, int y, const SkPaint*, bool is BitmapDevice); 1516 void internalDrawDevice(SkBaseDevice*, int x, int y, const SkPaint*);
1517 1517
1518 // shared by save() and saveLayer() 1518 // shared by save() and saveLayer()
1519 void internalSave(); 1519 void internalSave();
1520 void internalRestore(); 1520 void internalRestore();
1521 static void DrawRect(const SkDraw& draw, const SkPaint& paint, 1521 static void DrawRect(const SkDraw& draw, const SkPaint& paint,
1522 const SkRect& r, SkScalar textSize); 1522 const SkRect& r, SkScalar textSize);
1523 static void DrawTextDecorations(const SkDraw& draw, const SkPaint& paint, 1523 static void DrawTextDecorations(const SkDraw& draw, const SkPaint& paint,
1524 const char text[], size_t byteLength, 1524 const char text[], size_t byteLength,
1525 SkScalar x, SkScalar y); 1525 SkScalar x, SkScalar y);
1526 1526
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 1617
1618 class SkCanvasClipVisitor { 1618 class SkCanvasClipVisitor {
1619 public: 1619 public:
1620 virtual ~SkCanvasClipVisitor(); 1620 virtual ~SkCanvasClipVisitor();
1621 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1621 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1622 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1622 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1623 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1623 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1624 }; 1624 };
1625 1625
1626 #endif 1626 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698