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

Unified Diff: src/core/SkBBoxHierarchyRecord.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/core/SkBBoxHierarchyRecord.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkBBoxHierarchyRecord.cpp
diff --git a/src/core/SkBBoxHierarchyRecord.cpp b/src/core/SkBBoxHierarchyRecord.cpp
index e1be2e1972b5e12f6d6fccf4826900060fdf5724..eadd20613bfa2ee9de99bbb52086ee97334b27ec 100644
--- a/src/core/SkBBoxHierarchyRecord.cpp
+++ b/src/core/SkBBoxHierarchyRecord.cpp
@@ -43,39 +43,34 @@ void SkBBoxHierarchyRecord::willRestore() {
this->INHERITED::willRestore();
}
-bool SkBBoxHierarchyRecord::translate(SkScalar dx, SkScalar dy) {
- bool result = INHERITED::translate(dx, dy);
+void SkBBoxHierarchyRecord::didTranslate(SkScalar dx, SkScalar dy) {
fStateTree->appendTransform(getTotalMatrix());
- return result;
+ INHERITED::didTranslate(dx, dy);
}
-bool SkBBoxHierarchyRecord::scale(SkScalar sx, SkScalar sy) {
- bool result = INHERITED::scale(sx, sy);
+void SkBBoxHierarchyRecord::didScale(SkScalar sx, SkScalar sy) {
fStateTree->appendTransform(getTotalMatrix());
- return result;
+ INHERITED::didScale(sx, sy);
}
-bool SkBBoxHierarchyRecord::rotate(SkScalar degrees) {
- bool result = INHERITED::rotate(degrees);
+void SkBBoxHierarchyRecord::didRotate(SkScalar degrees) {
fStateTree->appendTransform(getTotalMatrix());
- return result;
+ INHERITED::didRotate(degrees);
}
-bool SkBBoxHierarchyRecord::skew(SkScalar sx, SkScalar sy) {
- bool result = INHERITED::skew(sx, sy);
+void SkBBoxHierarchyRecord::didSkew(SkScalar sx, SkScalar sy) {
fStateTree->appendTransform(getTotalMatrix());
- return result;
+ INHERITED::didSkew(sx, sy);
}
-bool SkBBoxHierarchyRecord::concat(const SkMatrix& matrix) {
- bool result = INHERITED::concat(matrix);
+void SkBBoxHierarchyRecord::didConcat(const SkMatrix& matrix) {
fStateTree->appendTransform(getTotalMatrix());
- return result;
+ INHERITED::didConcat(matrix);
}
-void SkBBoxHierarchyRecord::setMatrix(const SkMatrix& matrix) {
- INHERITED::setMatrix(matrix);
+void SkBBoxHierarchyRecord::didSetMatrix(const SkMatrix& matrix) {
fStateTree->appendTransform(getTotalMatrix());
+ INHERITED::didSetMatrix(matrix);
}
void SkBBoxHierarchyRecord::onClipRect(const SkRect& rect,
« no previous file with comments | « src/core/SkBBoxHierarchyRecord.h ('k') | src/core/SkCanvas.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698