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 10 matching lines...) Expand all Loading... |
21 return make_scoped_ptr(new TextureLayerImpl(tree_impl, id)); | 21 return make_scoped_ptr(new TextureLayerImpl(tree_impl, id)); |
22 } | 22 } |
23 virtual ~TextureLayerImpl(); | 23 virtual ~TextureLayerImpl(); |
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(QuadSink* quad_sink, | 31 virtual void AppendQuads(RenderPass* render_pass, |
| 32 const OcclusionTracker<LayerImpl>& occlusion_tracker, |
32 AppendQuadsData* append_quads_data) OVERRIDE; | 33 AppendQuadsData* append_quads_data) OVERRIDE; |
33 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; | 34 virtual Region VisibleContentOpaqueRegion() const OVERRIDE; |
34 virtual void ReleaseResources() OVERRIDE; | 35 virtual void ReleaseResources() OVERRIDE; |
35 | 36 |
36 // 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 |
37 // 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 |
38 // layer's output. | 39 // layer's output. |
39 void SetTextureId(unsigned id); | 40 void SetTextureId(unsigned id); |
40 void SetPremultipliedAlpha(bool premultiplied_alpha); | 41 void SetPremultipliedAlpha(bool premultiplied_alpha); |
41 void SetBlendBackgroundColor(bool blend); | 42 void SetBlendBackgroundColor(bool blend); |
(...skipping 29 matching lines...) Expand all Loading... |
71 scoped_ptr<SingleReleaseCallback> release_callback_; | 72 scoped_ptr<SingleReleaseCallback> release_callback_; |
72 bool own_mailbox_; | 73 bool own_mailbox_; |
73 bool valid_texture_copy_; | 74 bool valid_texture_copy_; |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); | 76 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); |
76 }; | 77 }; |
77 | 78 |
78 } // namespace cc | 79 } // namespace cc |
79 | 80 |
80 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ | 81 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ |
OLD | NEW |