OLD | NEW |
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 #ifndef CCRenderSurface_h | 5 #ifndef CCRenderSurface_h |
6 #define CCRenderSurface_h | 6 #define CCRenderSurface_h |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/cc_export.h" |
10 #include "cc/render_pass.h" | 11 #include "cc/render_pass.h" |
11 #include "cc/shared_quad_state.h" | 12 #include "cc/shared_quad_state.h" |
12 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
13 #include "ui/gfx/rect_f.h" | 14 #include "ui/gfx/rect_f.h" |
14 #include <public/WebTransformationMatrix.h> | 15 #include <public/WebTransformationMatrix.h> |
15 | 16 |
16 namespace cc { | 17 namespace cc { |
17 | 18 |
18 class DamageTracker; | 19 class DamageTracker; |
19 class DelegatedRendererLayerImpl; | 20 class DelegatedRendererLayerImpl; |
20 class QuadSink; | 21 class QuadSink; |
21 class RenderPassSink; | 22 class RenderPassSink; |
22 class LayerImpl; | 23 class LayerImpl; |
23 | 24 |
24 struct AppendQuadsData; | 25 struct AppendQuadsData; |
25 | 26 |
26 class RenderSurfaceImpl { | 27 class CC_EXPORT RenderSurfaceImpl { |
27 public: | 28 public: |
28 explicit RenderSurfaceImpl(LayerImpl*); | 29 explicit RenderSurfaceImpl(LayerImpl*); |
29 virtual ~RenderSurfaceImpl(); | 30 virtual ~RenderSurfaceImpl(); |
30 | 31 |
31 std::string name() const; | 32 std::string name() const; |
32 void dumpSurface(std::string*, int indent) const; | 33 void dumpSurface(std::string*, int indent) const; |
33 | 34 |
34 gfx::PointF contentRectCenter() const { return gfx::RectF(m_contentRect).Cen
terPoint(); } | 35 gfx::PointF contentRectCenter() const { return gfx::RectF(m_contentRect).Cen
terPoint(); } |
35 | 36 |
36 // Returns the rect that encloses the RenderSurfaceImpl including any reflec
tion. | 37 // Returns the rect that encloses the RenderSurfaceImpl including any reflec
tion. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 int m_targetRenderSurfaceLayerIndexHistory; | 120 int m_targetRenderSurfaceLayerIndexHistory; |
120 int m_currentLayerIndexHistory; | 121 int m_currentLayerIndexHistory; |
121 | 122 |
122 friend struct LayerIteratorActions; | 123 friend struct LayerIteratorActions; |
123 | 124 |
124 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); | 125 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); |
125 }; | 126 }; |
126 | 127 |
127 } | 128 } |
128 #endif | 129 #endif |
OLD | NEW |