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

Unified Diff: src/utils/SkCanvasStack.cpp

Issue 195793012: De-virtualize SkCanvas matrix ops. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/utils/SkCanvasStack.h ('k') | src/utils/SkDeferredCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkCanvasStack.cpp
diff --git a/src/utils/SkCanvasStack.cpp b/src/utils/SkCanvasStack.cpp
index d85f34b50611312ab02ca53f4fd9a63acea733aa..87e8f653e21b624d8db922b2610312e2f8ded75c 100644
--- a/src/utils/SkCanvasStack.cpp
+++ b/src/utils/SkCanvasStack.cpp
@@ -65,7 +65,7 @@ void SkCanvasStack::clipToZOrderedBounds() {
* canvas unlike all other matrix operations (i.e. translate, scale, etc) which
* just pre-concatenate with the existing matrix.
*/
-void SkCanvasStack::setMatrix(const SkMatrix& matrix) {
+void SkCanvasStack::didSetMatrix(const SkMatrix& matrix) {
SkASSERT(fList.count() == fCanvasData.count());
for (int i = 0; i < fList.count(); ++i) {
@@ -74,7 +74,7 @@ void SkCanvasStack::setMatrix(const SkMatrix& matrix) {
SkIntToScalar(-fCanvasData[i].origin.y()));
fList[i]->setMatrix(tempMatrix);
}
- this->SkCanvas::setMatrix(matrix);
+ this->SkCanvas::didSetMatrix(matrix);
}
void SkCanvasStack::onClipRect(const SkRect& r, SkRegion::Op op, ClipEdgeStyle edgeStyle) {
« no previous file with comments | « src/utils/SkCanvasStack.h ('k') | src/utils/SkDeferredCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698