Chromium Code Reviews| Index: ui/compositor/layer.h |
| diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h |
| index 4bb77d315bdc7e96014a88a6b7a7e7e874c27ae5..175642845c33d84e57ad8689a887d19fd0997d0d 100644 |
| --- a/ui/compositor/layer.h |
| +++ b/ui/compositor/layer.h |
| @@ -296,9 +296,8 @@ class COMPOSITOR_EXPORT Layer |
| void SetShowSurface(const cc::SurfaceId& surface_id, |
| const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, |
| const cc::SurfaceLayer::RequireCallback& require_callback, |
| - gfx::Size surface_size, |
| - float scale, |
| - gfx::Size frame_size_in_dip); |
| + const gfx::Size& surface_size_in_pixels, |
| + float scale); |
| bool has_external_content() { |
| return texture_layer_.get() || surface_layer_.get(); |
| @@ -388,6 +387,8 @@ class COMPOSITOR_EXPORT Layer |
| return damaged_region_; |
| } |
| + const gfx::Size& frame_size_in_dip() const { return frame_size_in_dip_; } |
|
sadrul
2016/12/14 20:12:41
Like the one above: add a _for_testing() at the en
|
| + |
| private: |
| friend class LayerOwner; |
| class LayerMirror; |