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

Side by Side Diff: cc/layers/layer_impl.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/layers/layer.cc ('k') | cc/layers/layer_impl.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 void SetContentBounds(const gfx::Size& content_bounds); 345 void SetContentBounds(const gfx::Size& content_bounds);
346 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } 346 gfx::Size content_bounds() const { return draw_properties_.content_bounds; }
347 347
348 float contents_scale_x() const { return draw_properties_.contents_scale_x; } 348 float contents_scale_x() const { return draw_properties_.contents_scale_x; }
349 float contents_scale_y() const { return draw_properties_.contents_scale_y; } 349 float contents_scale_y() const { return draw_properties_.contents_scale_y; }
350 void SetContentsScale(float contents_scale_x, float contents_scale_y); 350 void SetContentsScale(float contents_scale_x, float contents_scale_y);
351 351
352 virtual void CalculateContentsScale(float ideal_contents_scale, 352 virtual void CalculateContentsScale(float ideal_contents_scale,
353 float device_scale_factor, 353 float device_scale_factor,
354 float page_scale_factor, 354 float page_scale_factor,
355 float maximum_animation_contents_scale,
355 bool animating_transform_to_screen, 356 bool animating_transform_to_screen,
356 float* contents_scale_x, 357 float* contents_scale_x,
357 float* contents_scale_y, 358 float* contents_scale_y,
358 gfx::Size* content_bounds); 359 gfx::Size* content_bounds);
359 360
360 void SetScrollOffsetDelegate( 361 void SetScrollOffsetDelegate(
361 LayerScrollOffsetDelegate* scroll_offset_delegate); 362 LayerScrollOffsetDelegate* scroll_offset_delegate);
362 bool IsExternalFlingActive() const; 363 bool IsExternalFlingActive() const;
363 364
364 void SetScrollOffset(const gfx::Vector2d& scroll_offset); 365 void SetScrollOffset(const gfx::Vector2d& scroll_offset);
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 DrawProperties<LayerImpl> draw_properties_; 667 DrawProperties<LayerImpl> draw_properties_;
667 668
668 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 669 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
669 670
670 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 671 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
671 }; 672 };
672 673
673 } // namespace cc 674 } // namespace cc
674 675
675 #endif // CC_LAYERS_LAYER_IMPL_H_ 676 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698