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

Side by Side Diff: cc/render_surface.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/render_pass_sink.h ('k') | cc/render_surface_filters.h » ('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 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
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
OLDNEW
« no previous file with comments | « cc/render_pass_sink.h ('k') | cc/render_surface_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698