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

Side by Side Diff: cc/CCDrawQuad.h

Issue 10917153: Update cc snapshot to r127918 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « cc/CCDirectRenderer.cpp ('k') | cc/CCDrawQuad.cpp » ('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 CCDrawQuad_h 5 #ifndef CCDrawQuad_h
6 #define CCDrawQuad_h 6 #define CCDrawQuad_h
7 7
8 #include "CCSharedQuadState.h" 8 #include "CCSharedQuadState.h"
9 9
10 namespace WebCore { 10 namespace WebCore {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 void setQuadVisibleRect(const IntRect&); 52 void setQuadVisibleRect(const IntRect&);
53 IntRect quadVisibleRect() const { return m_quadVisibleRect; } 53 IntRect quadVisibleRect() const { return m_quadVisibleRect; }
54 bool isDebugQuad() const { return m_material == DebugBorder; } 54 bool isDebugQuad() const { return m_material == DebugBorder; }
55 55
56 Material material() const { return m_material; } 56 Material material() const { return m_material; }
57 57
58 // Returns transfer size of this object based on the derived class (by 58 // Returns transfer size of this object based on the derived class (by
59 // looking at the material type). 59 // looking at the material type).
60 unsigned size() const; 60 unsigned size() const;
61 61
62 PassOwnPtr<CCDrawQuad> copy(const CCSharedQuadState* copiedSharedQuadState) const;
63
62 const CCSharedQuadState* sharedQuadState() const { return m_sharedQuadState; } 64 const CCSharedQuadState* sharedQuadState() const { return m_sharedQuadState; }
63 int sharedQuadStateId() const { return m_sharedQuadStateId; } 65 int sharedQuadStateId() const { return m_sharedQuadStateId; }
64 void setSharedQuadState(const CCSharedQuadState*); 66 void setSharedQuadState(const CCSharedQuadState*);
65 67
66 protected: 68 protected:
67 CCDrawQuad(const CCSharedQuadState*, Material, const IntRect&); 69 CCDrawQuad(const CCSharedQuadState*, Material, const IntRect&);
68 70
69 // Stores state common to a large bundle of quads; kept separate for memory 71 // Stores state common to a large bundle of quads; kept separate for memory
70 // efficiency. There is special treatment to reconstruct these pointers 72 // efficiency. There is special treatment to reconstruct these pointers
71 // during serialization. 73 // during serialization.
(...skipping 13 matching lines...) Expand all
85 // Be default, this rect is empty. It is used when the shared quad state and above 87 // Be default, this rect is empty. It is used when the shared quad state and above
86 // variables determine that the quad is not fully opaque but may be partiall y opaque. 88 // variables determine that the quad is not fully opaque but may be partiall y opaque.
87 IntRect m_opaqueRect; 89 IntRect m_opaqueRect;
88 }; 90 };
89 91
90 #pragma pack(pop) 92 #pragma pack(pop)
91 93
92 } 94 }
93 95
94 #endif 96 #endif
OLDNEW
« no previous file with comments | « cc/CCDirectRenderer.cpp ('k') | cc/CCDrawQuad.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698