| 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 11 matching lines...) Expand all Loading... |
| 22 } | 22 } |
| 23 ~TextureLayerImpl() override; | 23 ~TextureLayerImpl() override; |
| 24 | 24 |
| 25 scoped_ptr<LayerImpl> CreateLayerImpl( | 25 scoped_ptr<LayerImpl> CreateLayerImpl( |
| 26 LayerTreeImpl* layer_tree_impl) override; | 26 LayerTreeImpl* layer_tree_impl) override; |
| 27 void PushPropertiesTo(LayerImpl* layer) override; | 27 void PushPropertiesTo(LayerImpl* layer) override; |
| 28 | 28 |
| 29 bool WillDraw(DrawMode draw_mode, | 29 bool WillDraw(DrawMode draw_mode, |
| 30 ResourceProvider* resource_provider) override; | 30 ResourceProvider* resource_provider) override; |
| 31 void AppendQuads(RenderPass* render_pass, | 31 void AppendQuads(RenderPass* render_pass, |
| 32 const Occlusion& occlusion_in_content_space, | |
| 33 AppendQuadsData* append_quads_data) override; | 32 AppendQuadsData* append_quads_data) override; |
| 34 SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; | 33 SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; |
| 35 void ReleaseResources() override; | 34 void ReleaseResources() override; |
| 36 | 35 |
| 37 // These setter methods don't cause any implicit damage, so the texture client | 36 // 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 | 37 // must explicitly invalidate if they intend to cause a visible change in the |
| 39 // layer's output. | 38 // layer's output. |
| 40 void SetTextureId(unsigned id); | 39 void SetTextureId(unsigned id); |
| 41 void SetPremultipliedAlpha(bool premultiplied_alpha); | 40 void SetPremultipliedAlpha(bool premultiplied_alpha); |
| 42 void SetBlendBackgroundColor(bool blend); | 41 void SetBlendBackgroundColor(bool blend); |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 scoped_ptr<SingleReleaseCallbackImpl> release_callback_; | 74 scoped_ptr<SingleReleaseCallbackImpl> release_callback_; |
| 76 bool own_mailbox_; | 75 bool own_mailbox_; |
| 77 bool valid_texture_copy_; | 76 bool valid_texture_copy_; |
| 78 | 77 |
| 79 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); | 78 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); |
| 80 }; | 79 }; |
| 81 | 80 |
| 82 } // namespace cc | 81 } // namespace cc |
| 83 | 82 |
| 84 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ | 83 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ |
| OLD | NEW |