| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 const std::string& name() const { return name_; } | 268 const std::string& name() const { return name_; } |
| 269 void set_name(const std::string& name) { name_ = name; } | 269 void set_name(const std::string& name) { name_ = name; } |
| 270 | 270 |
| 271 // Set new TextureMailbox for this layer. Note that |mailbox| may hold a | 271 // Set new TextureMailbox for this layer. Note that |mailbox| may hold a |
| 272 // shared memory resource or an actual mailbox for a texture. | 272 // shared memory resource or an actual mailbox for a texture. |
| 273 void SetTextureMailbox(const cc::TextureMailbox& mailbox, | 273 void SetTextureMailbox(const cc::TextureMailbox& mailbox, |
| 274 scoped_ptr<cc::SingleReleaseCallback> release_callback, | 274 scoped_ptr<cc::SingleReleaseCallback> release_callback, |
| 275 gfx::Size texture_size_in_dip); | 275 gfx::Size texture_size_in_dip); |
| 276 void SetTextureSize(gfx::Size texture_size_in_dip); | 276 void SetTextureSize(gfx::Size texture_size_in_dip); |
| 277 void SetTextureFlipped(bool flipped); |
| 277 | 278 |
| 278 // Begins showing delegated frames from the |frame_provider|. | 279 // Begins showing delegated frames from the |frame_provider|. |
| 279 void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider, | 280 void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider, |
| 280 gfx::Size frame_size_in_dip); | 281 gfx::Size frame_size_in_dip); |
| 281 | 282 |
| 282 // Begins showing content from a surface with a particular id. | 283 // Begins showing content from a surface with a particular id. |
| 283 void SetShowSurface(cc::SurfaceId surface_id, | 284 void SetShowSurface(cc::SurfaceId surface_id, |
| 284 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, | 285 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, |
| 285 const cc::SurfaceLayer::RequireCallback& require_callback, | 286 const cc::SurfaceLayer::RequireCallback& require_callback, |
| 286 gfx::Size surface_size, | 287 gfx::Size surface_size, |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 520 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
| 520 // or SetTextureMailbox was called. | 521 // or SetTextureMailbox was called. |
| 521 gfx::Size frame_size_in_dip_; | 522 gfx::Size frame_size_in_dip_; |
| 522 | 523 |
| 523 DISALLOW_COPY_AND_ASSIGN(Layer); | 524 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 524 }; | 525 }; |
| 525 | 526 |
| 526 } // namespace ui | 527 } // namespace ui |
| 527 | 528 |
| 528 #endif // UI_COMPOSITOR_LAYER_H_ | 529 #endif // UI_COMPOSITOR_LAYER_H_ |
| OLD | NEW |