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

Side by Side Diff: ui/gfx/compositor/test/test_layer_animation_delegate.cc

Issue 8533019: Add two pixel-based compositor unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing images from this CL Created 9 years, 1 month 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ui/gfx/compositor/test_layer_animation_delegate.h" 5 #include "ui/gfx/compositor/test/test_layer_animation_delegate.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 TestLayerAnimationDelegate::TestLayerAnimationDelegate() : opacity_(1.0f) { 9 TestLayerAnimationDelegate::TestLayerAnimationDelegate() : opacity_(1.0f) {
10 } 10 }
11 11
12 TestLayerAnimationDelegate::TestLayerAnimationDelegate( 12 TestLayerAnimationDelegate::TestLayerAnimationDelegate(
13 const LayerAnimationDelegate& other) 13 const LayerAnimationDelegate& other)
14 : bounds_(other.GetBoundsForAnimation()), 14 : bounds_(other.GetBoundsForAnimation()),
15 transform_(other.GetTransformForAnimation()), 15 transform_(other.GetTransformForAnimation()),
(...skipping 26 matching lines...) Expand all
42 42
43 const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const { 43 const Transform& TestLayerAnimationDelegate::GetTransformForAnimation() const {
44 return transform_; 44 return transform_;
45 } 45 }
46 46
47 float TestLayerAnimationDelegate::GetOpacityForAnimation() const { 47 float TestLayerAnimationDelegate::GetOpacityForAnimation() const {
48 return opacity_; 48 return opacity_;
49 } 49 }
50 50
51 } // namespace ui 51 } // namespace ui
OLDNEW
« no previous file with comments | « ui/gfx/compositor/test/test_layer_animation_delegate.h ('k') | ui/gfx/compositor/test/test_layer_animation_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698