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

Side by Side Diff: cc/layers/layer_impl.h

Issue 92853002: Support for drawing a debug border around animated layers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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
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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 344
345 void SetBounds(gfx::Size bounds); 345 void SetBounds(gfx::Size bounds);
346 gfx::Size bounds() const { return bounds_; } 346 gfx::Size bounds() const { return bounds_; }
347 347
348 void SetContentBounds(gfx::Size content_bounds); 348 void SetContentBounds(gfx::Size content_bounds);
349 gfx::Size content_bounds() const { return draw_properties_.content_bounds; } 349 gfx::Size content_bounds() const { return draw_properties_.content_bounds; }
350 350
351 float contents_scale_x() const { return draw_properties_.contents_scale_x; } 351 float contents_scale_x() const { return draw_properties_.contents_scale_x; }
352 float contents_scale_y() const { return draw_properties_.contents_scale_y; } 352 float contents_scale_y() const { return draw_properties_.contents_scale_y; }
353 void SetContentsScale(float contents_scale_x, float contents_scale_y); 353 void SetContentsScale(float contents_scale_x, float contents_scale_y);
354 354
Ian Vollick 2013/11/28 00:05:12 Please add a comment saying what this will do and
avallee 2013/11/28 00:31:08 Done.
355 bool GetAnimationBounds(gfx::BoxF* out) const { return false; }
356
355 virtual void CalculateContentsScale(float ideal_contents_scale, 357 virtual void CalculateContentsScale(float ideal_contents_scale,
356 float device_scale_factor, 358 float device_scale_factor,
357 float page_scale_factor, 359 float page_scale_factor,
358 bool animating_transform_to_screen, 360 bool animating_transform_to_screen,
359 float* contents_scale_x, 361 float* contents_scale_x,
360 float* contents_scale_y, 362 float* contents_scale_y,
361 gfx::Size* content_bounds); 363 gfx::Size* content_bounds);
362 364
363 void SetScrollOffsetDelegate( 365 void SetScrollOffsetDelegate(
364 LayerScrollOffsetDelegate* scroll_offset_delegate); 366 LayerScrollOffsetDelegate* scroll_offset_delegate);
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
644 // Group of properties that need to be computed based on the layer tree 646 // Group of properties that need to be computed based on the layer tree
645 // hierarchy before layers can be drawn. 647 // hierarchy before layers can be drawn.
646 DrawProperties<LayerImpl> draw_properties_; 648 DrawProperties<LayerImpl> draw_properties_;
647 649
648 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 650 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
649 }; 651 };
650 652
651 } // namespace cc 653 } // namespace cc
652 654
653 #endif // CC_LAYERS_LAYER_IMPL_H_ 655 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698