| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 RenderSurfaceChromium_h | 6 #ifndef RenderSurfaceChromium_h |
| 7 #define RenderSurfaceChromium_h | 7 #define RenderSurfaceChromium_h |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
| 11 #include "ui/gfx/rect.h" | 11 #include "ui/gfx/rect.h" |
| 12 #include "ui/gfx/rect_f.h" | 12 #include "ui/gfx/rect_f.h" |
| 13 #include <public/WebTransformationMatrix.h> | 13 #include <public/WebTransformationMatrix.h> |
| 14 #include <vector> | 14 #include <vector> |
| 15 #include "cc/cc_export.h" |
| 15 | 16 |
| 16 namespace cc { | 17 namespace cc { |
| 17 | 18 |
| 18 class Layer; | 19 class Layer; |
| 19 | 20 |
| 20 class RenderSurface { | 21 class CC_EXPORT RenderSurface { |
| 21 public: | 22 public: |
| 22 explicit RenderSurface(Layer*); | 23 explicit RenderSurface(Layer*); |
| 23 ~RenderSurface(); | 24 ~RenderSurface(); |
| 24 | 25 |
| 25 // Returns the rect that encloses the RenderSurfaceImpl including any reflec
tion. | 26 // Returns the rect that encloses the RenderSurfaceImpl including any reflec
tion. |
| 26 gfx::RectF drawableContentRect() const; | 27 gfx::RectF drawableContentRect() const; |
| 27 | 28 |
| 28 const gfx::Rect& contentRect() const { return m_contentRect; } | 29 const gfx::Rect& contentRect() const { return m_contentRect; } |
| 29 void setContentRect(const gfx::Rect& contentRect) { m_contentRect = contentR
ect; } | 30 void setContentRect(const gfx::Rect& contentRect) { m_contentRect = contentR
ect; } |
| 30 | 31 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 | 95 |
| 95 // For LayerIteratorActions | 96 // For LayerIteratorActions |
| 96 int m_targetRenderSurfaceLayerIndexHistory; | 97 int m_targetRenderSurfaceLayerIndexHistory; |
| 97 int m_currentLayerIndexHistory; | 98 int m_currentLayerIndexHistory; |
| 98 | 99 |
| 99 DISALLOW_COPY_AND_ASSIGN(RenderSurface); | 100 DISALLOW_COPY_AND_ASSIGN(RenderSurface); |
| 100 }; | 101 }; |
| 101 | 102 |
| 102 } | 103 } |
| 103 #endif | 104 #endif |
| OLD | NEW |