| 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 23 matching lines...) Expand all Loading... |
| 34 void ReleaseResources() override; | 34 void ReleaseResources() override; |
| 35 | 35 |
| 36 // 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 |
| 37 // 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 |
| 38 // layer's output. | 38 // layer's output. |
| 39 void SetTextureId(unsigned id); | 39 void SetTextureId(unsigned id); |
| 40 void SetPremultipliedAlpha(bool premultiplied_alpha); | 40 void SetPremultipliedAlpha(bool premultiplied_alpha); |
| 41 void SetBlendBackgroundColor(bool blend); | 41 void SetBlendBackgroundColor(bool blend); |
| 42 void SetFlipped(bool flipped); | 42 void SetFlipped(bool flipped); |
| 43 void SetNearestNeighbor(bool nearest_neighbor); | 43 void SetNearestNeighbor(bool nearest_neighbor); |
| 44 void SetUVTopLeft(const gfx::PointF top_left); | 44 void SetUVTopLeft(const gfx::PointF& top_left); |
| 45 void SetUVBottomRight(const gfx::PointF bottom_right); | 45 void SetUVBottomRight(const gfx::PointF& bottom_right); |
| 46 | 46 |
| 47 // 1--2 | 47 // 1--2 |
| 48 // | | | 48 // | | |
| 49 // 0--3 | 49 // 0--3 |
| 50 void SetVertexOpacity(const float vertex_opacity[4]); | 50 void SetVertexOpacity(const float vertex_opacity[4]); |
| 51 | 51 |
| 52 void SetTextureMailbox( | 52 void SetTextureMailbox( |
| 53 const TextureMailbox& mailbox, | 53 const TextureMailbox& mailbox, |
| 54 scoped_ptr<SingleReleaseCallbackImpl> release_callback); | 54 scoped_ptr<SingleReleaseCallbackImpl> release_callback); |
| 55 | 55 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 74 scoped_ptr<SingleReleaseCallbackImpl> release_callback_; | 74 scoped_ptr<SingleReleaseCallbackImpl> release_callback_; |
| 75 bool own_mailbox_; | 75 bool own_mailbox_; |
| 76 bool valid_texture_copy_; | 76 bool valid_texture_copy_; |
| 77 | 77 |
| 78 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); | 78 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); |
| 79 }; | 79 }; |
| 80 | 80 |
| 81 } // namespace cc | 81 } // namespace cc |
| 82 | 82 |
| 83 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ | 83 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ |
| OLD | NEW |