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

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

Issue 2128633002: cc: Set up the framework to restrict access to Layer internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move out the inner struct. Created 4 years, 5 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
« no previous file with comments | « cc/test/layer_internals_for_test.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « cc/test/layer_internals_for_test.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698