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

Side by Side Diff: third_party/WebKit/Source/core/animation/SampledEffect.cpp

Issue 2397113002: Move content up to KeyframeEffectReadOnly (Closed)
Patch Set: Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "core/animation/SampledEffect.h" 5 #include "core/animation/SampledEffect.h"
6 6
7 namespace blink { 7 namespace blink {
8 8
9 SampledEffect::SampledEffect(KeyframeEffect* effect) 9 SampledEffect::SampledEffect(KeyframeEffectReadOnly* effect)
10 : m_effect(effect), 10 : m_effect(effect),
11 m_sequenceNumber(effect->animation()->sequenceNumber()), 11 m_sequenceNumber(effect->animation()->sequenceNumber()),
12 m_priority(effect->getPriority()) {} 12 m_priority(effect->getPriority()) {}
13 13
14 void SampledEffect::clear() { 14 void SampledEffect::clear() {
15 m_effect = nullptr; 15 m_effect = nullptr;
16 m_interpolations.clear(); 16 m_interpolations.clear();
17 } 17 }
18 18
19 bool SampledEffect::willNeverChange() const { 19 bool SampledEffect::willNeverChange() const {
(...skipping 16 matching lines...) Expand all
36 if (!interpolation->dependsOnUnderlyingValue()) 36 if (!interpolation->dependsOnUnderlyingValue())
37 replacedProperties.add(interpolation->getProperty()); 37 replacedProperties.add(interpolation->getProperty());
38 } 38 }
39 } 39 }
40 40
41 DEFINE_TRACE(SampledEffect) { 41 DEFINE_TRACE(SampledEffect) {
42 visitor->trace(m_effect); 42 visitor->trace(m_effect);
43 } 43 }
44 44
45 } // namespace blink 45 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698