| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 const TextureMailbox& mailbox, | 53 const TextureMailbox& mailbox, |
| 54 scoped_ptr<SingleReleaseCallbackImpl> release_callback); | 54 scoped_ptr<SingleReleaseCallbackImpl> release_callback); |
| 55 | 55 |
| 56 private: | 56 private: |
| 57 TextureLayerImpl(LayerTreeImpl* tree_impl, int id); | 57 TextureLayerImpl(LayerTreeImpl* tree_impl, int id); |
| 58 | 58 |
| 59 const char* LayerTypeAsString() const override; | 59 const char* LayerTypeAsString() const override; |
| 60 void FreeTextureMailbox(); | 60 void FreeTextureMailbox(); |
| 61 | 61 |
| 62 ResourceId external_texture_resource_; | 62 ResourceId external_texture_resource_; |
| 63 gfx::Size external_texture_resource_size_; |
| 64 bool external_texture_allow_overlay_; |
| 63 bool premultiplied_alpha_; | 65 bool premultiplied_alpha_; |
| 64 bool blend_background_color_; | 66 bool blend_background_color_; |
| 65 bool flipped_; | 67 bool flipped_; |
| 66 bool nearest_neighbor_; | 68 bool nearest_neighbor_; |
| 67 gfx::PointF uv_top_left_; | 69 gfx::PointF uv_top_left_; |
| 68 gfx::PointF uv_bottom_right_; | 70 gfx::PointF uv_bottom_right_; |
| 69 float vertex_opacity_[4]; | 71 float vertex_opacity_[4]; |
| 70 // This is a resource that's a GL copy of a software texture mailbox. | 72 // This is a resource that's a GL copy of a software texture mailbox. |
| 71 scoped_ptr<ScopedResource> texture_copy_; | 73 scoped_ptr<ScopedResource> texture_copy_; |
| 72 | 74 |
| 73 TextureMailbox texture_mailbox_; | 75 TextureMailbox texture_mailbox_; |
| 74 scoped_ptr<SingleReleaseCallbackImpl> release_callback_; | 76 scoped_ptr<SingleReleaseCallbackImpl> release_callback_; |
| 75 bool own_mailbox_; | 77 bool own_mailbox_; |
| 76 bool valid_texture_copy_; | 78 bool valid_texture_copy_; |
| 77 | 79 |
| 78 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); | 80 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 } // namespace cc | 83 } // namespace cc |
| 82 | 84 |
| 83 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ | 85 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ |
| OLD | NEW |