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

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: Address vollick's comments. 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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
355 // Computes a box in screen space that should entirely contain the layer's
356 // bounds through the entirety of the layer's current animation. Returns true
357 // on success.
Ian Vollick 2013/11/28 00:44:58 It's not quite success, IIRC. I thought we returne
Ian Vollick 2013/12/06 20:24:28 Alex pointed out offline, that although we'll retu
avallee 2013/12/06 22:08:32 Tweaked the comment.
358 bool GetAnimationBounds(gfx::BoxF* out) const { return false; }
359
355 virtual void CalculateContentsScale(float ideal_contents_scale, 360 virtual void CalculateContentsScale(float ideal_contents_scale,
356 float device_scale_factor, 361 float device_scale_factor,
357 float page_scale_factor, 362 float page_scale_factor,
358 bool animating_transform_to_screen, 363 bool animating_transform_to_screen,
359 float* contents_scale_x, 364 float* contents_scale_x,
360 float* contents_scale_y, 365 float* contents_scale_y,
361 gfx::Size* content_bounds); 366 gfx::Size* content_bounds);
362 367
363 void SetScrollOffsetDelegate( 368 void SetScrollOffsetDelegate(
364 LayerScrollOffsetDelegate* scroll_offset_delegate); 369 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 649 // Group of properties that need to be computed based on the layer tree
645 // hierarchy before layers can be drawn. 650 // hierarchy before layers can be drawn.
646 DrawProperties<LayerImpl> draw_properties_; 651 DrawProperties<LayerImpl> draw_properties_;
647 652
648 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 653 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
649 }; 654 };
650 655
651 } // namespace cc 656 } // namespace cc
652 657
653 #endif // CC_LAYERS_LAYER_IMPL_H_ 658 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698