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

Side by Side Diff: third_party/WebKit/Source/platform/animation/CompositorTransformOperations.cpp

Issue 1698213002: Blink Compositor: Erase virtuals on Transform and Filter operations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move AnimationTranslationUtil to platform. Created 4 years, 10 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/animation/CompositorTransformOperations.h" 5 #include "platform/animation/CompositorTransformOperations.h"
6 6
7 #include "ui/gfx/transform.h" 7 #include "ui/gfx/transform.h"
8 #include <algorithm> 8 #include <algorithm>
9 9
10 namespace blink { 10 namespace blink {
11 11
12 CompositorTransformOperations::CompositorTransformOperations() 12 CompositorTransformOperations::CompositorTransformOperations()
13 { 13 {
14 } 14 }
15 15
16 CompositorTransformOperations::~CompositorTransformOperations()
17 {
18 }
19
20 const cc::TransformOperations& CompositorTransformOperations::asTransformOperati ons() const 16 const cc::TransformOperations& CompositorTransformOperations::asTransformOperati ons() const
21 { 17 {
22 return m_transformOperations; 18 return m_transformOperations;
23 } 19 }
24 20
25 bool CompositorTransformOperations::canBlendWith(const blink::CompositorTransfor mOperations& other) const 21 bool CompositorTransformOperations::canBlendWith(const blink::CompositorTransfor mOperations& other) const
26 { 22 {
27 return m_transformOperations.CanBlendWith(other.m_transformOperations); 23 return m_transformOperations.CanBlendWith(other.m_transformOperations);
28 } 24 }
29 25
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 { 59 {
64 m_transformOperations.AppendIdentity(); 60 m_transformOperations.AppendIdentity();
65 } 61 }
66 62
67 bool CompositorTransformOperations::isIdentity() const 63 bool CompositorTransformOperations::isIdentity() const
68 { 64 {
69 return m_transformOperations.IsIdentity(); 65 return m_transformOperations.IsIdentity();
70 } 66 }
71 67
72 } // namespace blink 68 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698