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

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

Issue 1022423002: Make SkCanvas::getBaseLayerSize() virtual (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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
« no previous file with comments | « no previous file | 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 * 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 /** 123 /**
124 * Trigger the immediate execution of all pending draw operations. 124 * Trigger the immediate execution of all pending draw operations.
125 */ 125 */
126 void flush(); 126 void flush();
127 127
128 /** 128 /**
129 * Gets the size of the base or root layer in global canvas coordinates. The 129 * Gets the size of the base or root layer in global canvas coordinates. The
130 * origin of the base layer is always (0,0). The current drawable area may b e 130 * origin of the base layer is always (0,0). The current drawable area may b e
131 * smaller (due to clipping or saveLayer). 131 * smaller (due to clipping or saveLayer).
132 */ 132 */
133 SkISize getBaseLayerSize() const; 133 virtual SkISize getBaseLayerSize() const;
134 134
135 /** 135 /**
136 * DEPRECATED: call getBaseLayerSize 136 * DEPRECATED: call getBaseLayerSize
137 */ 137 */
138 SkISize getDeviceSize() const { return this->getBaseLayerSize(); } 138 SkISize getDeviceSize() const { return this->getBaseLayerSize(); }
139 139
140 /** 140 /**
141 * DEPRECATED. 141 * DEPRECATED.
142 * Return the canvas' device object, which may be null. The device holds 142 * Return the canvas' device object, which may be null. The device holds
143 * the bitmap of the pixels that the canvas draws into. The reference count 143 * the bitmap of the pixels that the canvas draws into. The reference count
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1490 1490
1491 class SkCanvasClipVisitor { 1491 class SkCanvasClipVisitor {
1492 public: 1492 public:
1493 virtual ~SkCanvasClipVisitor(); 1493 virtual ~SkCanvasClipVisitor();
1494 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0; 1494 virtual void clipRect(const SkRect&, SkRegion::Op, bool antialias) = 0;
1495 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0; 1495 virtual void clipRRect(const SkRRect&, SkRegion::Op, bool antialias) = 0;
1496 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0; 1496 virtual void clipPath(const SkPath&, SkRegion::Op, bool antialias) = 0;
1497 }; 1497 };
1498 1498
1499 #endif 1499 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698