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

Side by Side Diff: cc/test/tiled_layer_test_common.h

Issue 226283004: Rasterize at maximum scale for scale animations on CPU-rasterized layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 6 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/animation_test_common.cc ('k') | cc/test/tiled_layer_test_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 #ifndef CC_TEST_TILED_LAYER_TEST_COMMON_H_ 5 #ifndef CC_TEST_TILED_LAYER_TEST_COMMON_H_
6 #define CC_TEST_TILED_LAYER_TEST_COMMON_H_ 6 #define CC_TEST_TILED_LAYER_TEST_COMMON_H_
7 7
8 #include "cc/base/region.h" 8 #include "cc/base/region.h"
9 #include "cc/layers/tiled_layer.h" 9 #include "cc/layers/tiled_layer.h"
10 #include "cc/layers/tiled_layer_impl.h" 10 #include "cc/layers/tiled_layer_impl.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 class FakeTiledLayerWithScaledBounds : public FakeTiledLayer { 136 class FakeTiledLayerWithScaledBounds : public FakeTiledLayer {
137 public: 137 public:
138 explicit FakeTiledLayerWithScaledBounds( 138 explicit FakeTiledLayerWithScaledBounds(
139 PrioritizedResourceManager* resource_manager); 139 PrioritizedResourceManager* resource_manager);
140 140
141 void SetContentBounds(const gfx::Size& content_bounds); 141 void SetContentBounds(const gfx::Size& content_bounds);
142 virtual void CalculateContentsScale(float ideal_contents_scale, 142 virtual void CalculateContentsScale(float ideal_contents_scale,
143 float device_scale_factor, 143 float device_scale_factor,
144 float page_scale_factor, 144 float page_scale_factor,
145 float maximum_animation_contents_scale,
145 bool animating_transform_to_screen, 146 bool animating_transform_to_screen,
146 float* contents_scale_x, 147 float* contents_scale_x,
147 float* contents_scale_y, 148 float* contents_scale_y,
148 gfx::Size* content_bounds) OVERRIDE; 149 gfx::Size* content_bounds) OVERRIDE;
149 150
150 protected: 151 protected:
151 virtual ~FakeTiledLayerWithScaledBounds(); 152 virtual ~FakeTiledLayerWithScaledBounds();
152 gfx::Size forced_content_bounds_; 153 gfx::Size forced_content_bounds_;
153 154
154 private: 155 private:
155 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds); 156 DISALLOW_COPY_AND_ASSIGN(FakeTiledLayerWithScaledBounds);
156 }; 157 };
157 158
158 } // namespace cc 159 } // namespace cc
159 160
160 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ 161 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/test/animation_test_common.cc ('k') | cc/test/tiled_layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698