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

Side by Side Diff: cc/CCRenderSurface.h

Issue 10898023: Update cc snapshot to WK r126941 (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased 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
« no previous file with comments | « cc/CCRenderPass.cpp ('k') | cc/CCRenderSurface.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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 5
6 #ifndef CCRenderSurface_h 6 #ifndef CCRenderSurface_h
7 #define CCRenderSurface_h 7 #define CCRenderSurface_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
11 #include "CCSharedQuadState.h" 11 #include "CCSharedQuadState.h"
12 #include "FloatRect.h" 12 #include "FloatRect.h"
13 #include "IntRect.h" 13 #include "IntRect.h"
14 #include <public/WebTransformationMatrix.h> 14 #include <public/WebTransformationMatrix.h>
15 #include <wtf/Noncopyable.h> 15 #include <wtf/Noncopyable.h>
16 #include <wtf/text/WTFString.h> 16 #include <wtf/text/WTFString.h>
17 17
18 namespace WebCore { 18 namespace WebCore {
19 19
20 class CCDamageTracker; 20 class CCDamageTracker;
21 class CCQuadSink; 21 class CCQuadSink;
22 class CCRenderPass; 22 class CCRenderPass;
23 class CCRenderPassSink; 23 class CCRenderPassSink;
24 class CCLayerImpl; 24 class CCLayerImpl;
25 class TextStream; 25 class TextStream;
26 26
27 struct CCAppendQuadsData;
28
27 class CCRenderSurface { 29 class CCRenderSurface {
28 WTF_MAKE_NONCOPYABLE(CCRenderSurface); 30 WTF_MAKE_NONCOPYABLE(CCRenderSurface);
29 public: 31 public:
30 explicit CCRenderSurface(CCLayerImpl*); 32 explicit CCRenderSurface(CCLayerImpl*);
31 virtual ~CCRenderSurface(); 33 virtual ~CCRenderSurface();
32 34
33 String name() const; 35 String name() const;
34 void dumpSurface(TextStream&, int indent) const; 36 void dumpSurface(TextStream&, int indent) const;
35 37
36 FloatPoint contentRectCenter() const { return FloatRect(m_contentRect).cente r(); } 38 FloatPoint contentRectCenter() const { return FloatRect(m_contentRect).cente r(); }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 79
78 int owningLayerId() const; 80 int owningLayerId() const;
79 81
80 void resetPropertyChangedFlag() { m_surfacePropertyChanged = false; } 82 void resetPropertyChangedFlag() { m_surfacePropertyChanged = false; }
81 bool surfacePropertyChanged() const; 83 bool surfacePropertyChanged() const;
82 bool surfacePropertyChangedOnlyFromDescendant() const; 84 bool surfacePropertyChangedOnlyFromDescendant() const;
83 85
84 CCDamageTracker* damageTracker() const { return m_damageTracker.get(); } 86 CCDamageTracker* damageTracker() const { return m_damageTracker.get(); }
85 87
86 void appendRenderPasses(CCRenderPassSink&); 88 void appendRenderPasses(CCRenderPassSink&);
87 void appendQuads(CCQuadSink&, bool forReplica, int renderPassId); 89 void appendQuads(CCQuadSink&, CCAppendQuadsData&, bool forReplica, int rende rPassId);
88 90
89 private: 91 private:
90 CCLayerImpl* m_owningLayer; 92 CCLayerImpl* m_owningLayer;
91 93
92 // Uses this surface's space. 94 // Uses this surface's space.
93 IntRect m_contentRect; 95 IntRect m_contentRect;
94 bool m_surfacePropertyChanged; 96 bool m_surfacePropertyChanged;
95 97
96 float m_drawOpacity; 98 float m_drawOpacity;
97 bool m_drawOpacityIsAnimating; 99 bool m_drawOpacityIsAnimating;
(...skipping 19 matching lines...) Expand all
117 int m_targetRenderSurfaceLayerIndexHistory; 119 int m_targetRenderSurfaceLayerIndexHistory;
118 int m_currentLayerIndexHistory; 120 int m_currentLayerIndexHistory;
119 121
120 friend struct CCLayerIteratorActions; 122 friend struct CCLayerIteratorActions;
121 }; 123 };
122 124
123 } 125 }
124 #endif // USE(ACCELERATED_COMPOSITING) 126 #endif // USE(ACCELERATED_COMPOSITING)
125 127
126 #endif 128 #endif
OLDNEW
« no previous file with comments | « cc/CCRenderPass.cpp ('k') | cc/CCRenderSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698