Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: cc/texture_layer_impl.h

Issue 11888010: Cosmetic cleanup to texture_layer mailboxes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/texture_layer.cc ('k') | cc/texture_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_TEXTURE_LAYER_IMPL_H_ 5 #ifndef CC_TEXTURE_LAYER_IMPL_H_
6 #define CC_TEXTURE_LAYER_IMPL_H_ 6 #define CC_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 24 matching lines...) Expand all
35 void setFlipped(bool flipped) { m_flipped = flipped; } 35 void setFlipped(bool flipped) { m_flipped = flipped; }
36 void setUVTopLeft(gfx::PointF topLeft) { m_uvTopLeft = topLeft; } 36 void setUVTopLeft(gfx::PointF topLeft) { m_uvTopLeft = topLeft; }
37 void setUVBottomRight(gfx::PointF bottomRight) { m_uvBottomRight = bottomRig ht; } 37 void setUVBottomRight(gfx::PointF bottomRight) { m_uvBottomRight = bottomRig ht; }
38 38
39 // 1--2 39 // 1--2
40 // | | 40 // | |
41 // 0--3 41 // 0--3
42 void setVertexOpacity(const float vertexOpacity[4]); 42 void setVertexOpacity(const float vertexOpacity[4]);
43 virtual bool canClipSelf() const OVERRIDE; 43 virtual bool canClipSelf() const OVERRIDE;
44 44
45 void setTextureMailbox(const std::string& mailboxName, const base::Callback< void(unsigned)>& releaseCallback); 45 void setTextureMailbox(const TextureMailbox&);
46 46
47 private: 47 private:
48 TextureLayerImpl(LayerTreeImpl* treeImpl, int id, bool usesMailbox); 48 TextureLayerImpl(LayerTreeImpl* treeImpl, int id, bool usesMailbox);
49 49
50 virtual const char* layerTypeAsString() const OVERRIDE; 50 virtual const char* layerTypeAsString() const OVERRIDE;
51 51
52 unsigned m_textureId; 52 unsigned m_textureId;
53 ResourceProvider::ResourceId m_externalTextureResource; 53 ResourceProvider::ResourceId m_externalTextureResource;
54 bool m_premultipliedAlpha; 54 bool m_premultipliedAlpha;
55 bool m_flipped; 55 bool m_flipped;
56 gfx::PointF m_uvTopLeft; 56 gfx::PointF m_uvTopLeft;
57 gfx::PointF m_uvBottomRight; 57 gfx::PointF m_uvBottomRight;
58 float m_vertexOpacity[4]; 58 float m_vertexOpacity[4];
59 59
60 bool m_hasPendingMailbox; 60 bool m_hasPendingMailbox;
61 std::string m_pendingMailboxName; 61 TextureMailbox m_pendingTextureMailbox;
62 base::Callback<void(unsigned)> m_pendingMailboxReleaseCallback;
63 bool m_usesMailbox; 62 bool m_usesMailbox;
64 }; 63 };
65 64
66 } 65 }
67 66
68 #endif // CC_TEXTURE_LAYER_IMPL_H_ 67 #endif // CC_TEXTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/texture_layer.cc ('k') | cc/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698