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

Side by Side Diff: cc/CCRenderSurface.h

Issue 10900021: Use std::string instead of WTF::String / TextStream (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/CCLayerTreeHostImpl.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 "CCRenderPass.h" 11 #include "CCRenderPass.h"
12 #include "CCSharedQuadState.h" 12 #include "CCSharedQuadState.h"
13 #include "FloatRect.h" 13 #include "FloatRect.h"
14 #include "IntRect.h" 14 #include "IntRect.h"
15 #include <public/WebTransformationMatrix.h> 15 #include <public/WebTransformationMatrix.h>
16 #include <wtf/Noncopyable.h> 16 #include <wtf/Noncopyable.h>
17 #include <wtf/text/WTFString.h>
18 17
19 namespace WebCore { 18 namespace WebCore {
20 19
21 class CCDamageTracker; 20 class CCDamageTracker;
22 class CCQuadSink; 21 class CCQuadSink;
23 class CCRenderPassSink; 22 class CCRenderPassSink;
24 class CCLayerImpl; 23 class CCLayerImpl;
25 class TextStream;
26 24
27 struct CCAppendQuadsData; 25 struct CCAppendQuadsData;
28 26
29 class CCRenderSurface { 27 class CCRenderSurface {
30 WTF_MAKE_NONCOPYABLE(CCRenderSurface); 28 WTF_MAKE_NONCOPYABLE(CCRenderSurface);
31 public: 29 public:
32 explicit CCRenderSurface(CCLayerImpl*); 30 explicit CCRenderSurface(CCLayerImpl*);
33 virtual ~CCRenderSurface(); 31 virtual ~CCRenderSurface();
34 32
35 String name() const; 33 std::string name() const;
36 void dumpSurface(TextStream&, int indent) const; 34 void dumpSurface(std::string*, int indent) const;
37 35
38 FloatPoint contentRectCenter() const { return FloatRect(m_contentRect).cente r(); } 36 FloatPoint contentRectCenter() const { return FloatRect(m_contentRect).cente r(); }
39 37
40 // Returns the rect that encloses the RenderSurface including any reflection . 38 // Returns the rect that encloses the RenderSurface including any reflection .
41 FloatRect drawableContentRect() const; 39 FloatRect drawableContentRect() const;
42 40
43 float drawOpacity() const { return m_drawOpacity; } 41 float drawOpacity() const { return m_drawOpacity; }
44 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; } 42 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; }
45 43
46 void setNearestAncestorThatMovesPixels(CCRenderSurface* surface) { m_nearest AncestorThatMovesPixels = surface; } 44 void setNearestAncestorThatMovesPixels(CCRenderSurface* surface) { m_nearest AncestorThatMovesPixels = surface; }
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int m_targetRenderSurfaceLayerIndexHistory; 119 int m_targetRenderSurfaceLayerIndexHistory;
122 int m_currentLayerIndexHistory; 120 int m_currentLayerIndexHistory;
123 121
124 friend struct CCLayerIteratorActions; 122 friend struct CCLayerIteratorActions;
125 }; 123 };
126 124
127 } 125 }
128 #endif // USE(ACCELERATED_COMPOSITING) 126 #endif // USE(ACCELERATED_COMPOSITING)
129 127
130 #endif 128 #endif
OLDNEW
« no previous file with comments | « cc/CCLayerTreeHostImpl.cpp ('k') | cc/CCRenderSurface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698