OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 UI_COMPOSITOR_LAYER_H_ | 5 #ifndef UI_COMPOSITOR_LAYER_H_ |
6 #define UI_COMPOSITOR_LAYER_H_ | 6 #define UI_COMPOSITOR_LAYER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 // crbug.com/610086 | 290 // crbug.com/610086 |
291 void SetTextureAlpha(float alpha); | 291 void SetTextureAlpha(float alpha); |
292 | 292 |
293 // The texture crop rectangle to be used. Empty rectangle means no cropping. | 293 // The texture crop rectangle to be used. Empty rectangle means no cropping. |
294 void SetTextureCrop(const gfx::RectF& crop); | 294 void SetTextureCrop(const gfx::RectF& crop); |
295 | 295 |
296 // The texture scale to be used. Defaults to no scaling. | 296 // The texture scale to be used. Defaults to no scaling. |
297 void SetTextureScale(float x_scale, float y_scale); | 297 void SetTextureScale(float x_scale, float y_scale); |
298 | 298 |
299 // Begins showing content from a surface with a particular id. | 299 // Begins showing content from a surface with a particular id. |
300 void SetShowSurface(cc::SurfaceId surface_id, | 300 void SetShowSurface(const cc::SurfaceId& surface_id, |
301 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, | 301 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, |
302 const cc::SurfaceLayer::RequireCallback& require_callback, | 302 const cc::SurfaceLayer::RequireCallback& require_callback, |
303 gfx::Size surface_size, | 303 gfx::Size surface_size, |
304 float scale, | 304 float scale, |
305 gfx::Size frame_size_in_dip); | 305 gfx::Size frame_size_in_dip); |
306 | 306 |
307 bool has_external_content() { | 307 bool has_external_content() { |
308 return texture_layer_.get() || surface_layer_.get(); | 308 return texture_layer_.get() || surface_layer_.get(); |
309 } | 309 } |
310 | 310 |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
529 // The texture scale. | 529 // The texture scale. |
530 float texture_x_scale_; | 530 float texture_x_scale_; |
531 float texture_y_scale_; | 531 float texture_y_scale_; |
532 | 532 |
533 DISALLOW_COPY_AND_ASSIGN(Layer); | 533 DISALLOW_COPY_AND_ASSIGN(Layer); |
534 }; | 534 }; |
535 | 535 |
536 } // namespace ui | 536 } // namespace ui |
537 | 537 |
538 #endif // UI_COMPOSITOR_LAYER_H_ | 538 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |