OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CC_LAYERS_TEXTURE_LAYER_IMPL_H_ | 5 #ifndef CC_LAYERS_TEXTURE_LAYER_IMPL_H_ |
6 #define CC_LAYERS_TEXTURE_LAYER_IMPL_H_ | 6 #define CC_LAYERS_TEXTURE_LAYER_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* layer_tree_impl) | 25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* layer_tree_impl) |
26 OVERRIDE; | 26 OVERRIDE; |
27 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; | 27 virtual void PushPropertiesTo(LayerImpl* layer) OVERRIDE; |
28 | 28 |
29 virtual bool WillDraw(DrawMode draw_mode, | 29 virtual bool WillDraw(DrawMode draw_mode, |
30 ResourceProvider* resource_provider) OVERRIDE; | 30 ResourceProvider* resource_provider) OVERRIDE; |
31 virtual void AppendQuads(RenderPass* render_pass, | 31 virtual void AppendQuads(RenderPass* render_pass, |
32 const OcclusionTracker<LayerImpl>& occlusion_tracker, | 32 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
33 AppendQuadsData* append_quads_data) OVERRIDE; | 33 AppendQuadsData* append_quads_data) OVERRIDE; |
34 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; | 34 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const OVERRIDE; |
35 virtual void ReleaseResources() OVERRIDE; | 35 virtual void ReleaseResources() OVERRIDE; |
36 | 36 |
37 // These setter methods don't cause any implicit damage, so the texture client | 37 // These setter methods don't cause any implicit damage, so the texture client |
38 // must explicitly invalidate if they intend to cause a visible change in the | 38 // must explicitly invalidate if they intend to cause a visible change in the |
39 // layer's output. | 39 // layer's output. |
40 void SetTextureId(unsigned id); | 40 void SetTextureId(unsigned id); |
41 void SetPremultipliedAlpha(bool premultiplied_alpha); | 41 void SetPremultipliedAlpha(bool premultiplied_alpha); |
42 void SetBlendBackgroundColor(bool blend); | 42 void SetBlendBackgroundColor(bool blend); |
43 void SetFlipped(bool flipped); | 43 void SetFlipped(bool flipped); |
44 void SetUVTopLeft(const gfx::PointF top_left); | 44 void SetUVTopLeft(const gfx::PointF top_left); |
(...skipping 27 matching lines...) Expand all Loading... |
72 scoped_ptr<SingleReleaseCallback> release_callback_; | 72 scoped_ptr<SingleReleaseCallback> release_callback_; |
73 bool own_mailbox_; | 73 bool own_mailbox_; |
74 bool valid_texture_copy_; | 74 bool valid_texture_copy_; |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); | 76 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); |
77 }; | 77 }; |
78 | 78 |
79 } // namespace cc | 79 } // namespace cc |
80 | 80 |
81 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ | 81 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ |
OLD | NEW |