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); | |
278 bool TextureFlipped() const; | |
279 | 277 |
280 // Begins showing delegated frames from the |frame_provider|. | 278 // Begins showing delegated frames from the |frame_provider|. |
281 void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider, | 279 void SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider, |
282 gfx::Size frame_size_in_dip); | 280 gfx::Size frame_size_in_dip); |
283 | 281 |
284 // Begins showing content from a surface with a particular id. | 282 // Begins showing content from a surface with a particular id. |
285 void SetShowSurface(cc::SurfaceId surface_id, | 283 void SetShowSurface(cc::SurfaceId surface_id, |
286 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, | 284 const cc::SurfaceLayer::SatisfyCallback& satisfy_callback, |
287 const cc::SurfaceLayer::RequireCallback& require_callback, | 285 const cc::SurfaceLayer::RequireCallback& require_callback, |
288 gfx::Size surface_size, | 286 gfx::Size surface_size, |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
521 // The size of the frame or texture in DIP, set when SetShowDelegatedContent | 519 // The size of the frame or texture in DIP, set when SetShowDelegatedContent |
522 // or SetTextureMailbox was called. | 520 // or SetTextureMailbox was called. |
523 gfx::Size frame_size_in_dip_; | 521 gfx::Size frame_size_in_dip_; |
524 | 522 |
525 DISALLOW_COPY_AND_ASSIGN(Layer); | 523 DISALLOW_COPY_AND_ASSIGN(Layer); |
526 }; | 524 }; |
527 | 525 |
528 } // namespace ui | 526 } // namespace ui |
529 | 527 |
530 #endif // UI_COMPOSITOR_LAYER_H_ | 528 #endif // UI_COMPOSITOR_LAYER_H_ |
OLD | NEW |