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

Unified Diff: Source/platform/transforms/PerspectiveTransformOperation.h

Issue 328333003: Adding Blink-side 3d Box and Bounds calculations to TransformOperations (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing android build Created 6 years, 6 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
Index: Source/platform/transforms/PerspectiveTransformOperation.h
diff --git a/Source/platform/transforms/PerspectiveTransformOperation.h b/Source/platform/transforms/PerspectiveTransformOperation.h
index e2de31de9b372c9290e365468300a64c06f35995..59ab8ee487e49fecdfd923ac6fc5a24f469fdbf6 100644
--- a/Source/platform/transforms/PerspectiveTransformOperation.h
+++ b/Source/platform/transforms/PerspectiveTransformOperation.h
@@ -39,6 +39,11 @@ public:
double perspective() const { return m_p; }
+ virtual bool canBlendWith(const TransformOperation& other) const
+ {
+ return isSameType(other);
+ }
+
private:
virtual bool isIdentity() const OVERRIDE { return !m_p; }
virtual OperationType type() const OVERRIDE { return Perspective; }
« no previous file with comments | « Source/platform/transforms/MatrixTransformOperation.h ('k') | Source/platform/transforms/RotateTransformOperation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698