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

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

Powered by Google App Engine
This is Rietveld 408576698