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

Side by Side Diff: cc/test/layer_internals_for_test.cc

Issue 2716583004: cc: Remove SetNeedsUpdate function from cc::Layer (Closed)
Patch Set: Created 3 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698