| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/test/layer_internals_for_test.h" |
| 6 |
| 7 #include "cc/layers/layer.h" |
| 8 |
| 9 namespace cc { |
| 10 |
| 11 LayerInternalsForTest::LayerInternalsForTest(Layer* layer) : layer_(layer) {} |
| 12 |
| 13 void LayerInternalsForTest::OnOpacityAnimated(float opacity) { |
| 14 layer_->OnOpacityAnimated(opacity); |
| 15 } |
| 16 |
| 17 void LayerInternalsForTest::OnTransformAnimated( |
| 18 const gfx::Transform& transform) { |
| 19 layer_->OnTransformAnimated(transform); |
| 20 } |
| 21 |
| 22 void LayerInternalsForTest::OnScrollOffsetAnimated( |
| 23 const gfx::ScrollOffset& scroll_offset) { |
| 24 layer_->OnScrollOffsetAnimated(scroll_offset); |
| 25 } |
| 26 |
| 27 } // namespace cc |
| OLD | NEW |