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

Side by Side Diff: cc/content_layer_updater.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/content_layer.h ('k') | cc/contents_scaling_layer.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 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 ContentLayerUpdater_h 5 #ifndef ContentLayerUpdater_h
6 #define ContentLayerUpdater_h 6 #define ContentLayerUpdater_h
7 7
8 #include "cc/cc_export.h"
8 #include "cc/layer_updater.h" 9 #include "cc/layer_updater.h"
9 10
10 class SkCanvas; 11 class SkCanvas;
11 12
12 namespace cc { 13 namespace cc {
13 14
14 class LayerPainter; 15 class LayerPainter;
15 16
16 // Base class for BitmapContentLayerUpdater and 17 // Base class for BitmapContentLayerUpdater and
17 // SkPictureContentLayerUpdater that reduces code duplication between 18 // SkPictureContentLayerUpdater that reduces code duplication between
18 // their respective paintContents implementations. 19 // their respective paintContents implementations.
19 class ContentLayerUpdater : public LayerUpdater { 20 class CC_EXPORT ContentLayerUpdater : public LayerUpdater {
20 protected: 21 protected:
21 explicit ContentLayerUpdater(scoped_ptr<LayerPainter>); 22 explicit ContentLayerUpdater(scoped_ptr<LayerPainter>);
22 virtual ~ContentLayerUpdater(); 23 virtual ~ContentLayerUpdater();
23 24
24 void paintContents(SkCanvas*, const gfx::Rect& contentRect, float contentsWi dthScale, float contentsHeightScale, gfx::Rect& resultingOpaqueRect, RenderingSt ats&); 25 void paintContents(SkCanvas*, const gfx::Rect& contentRect, float contentsWi dthScale, float contentsHeightScale, gfx::Rect& resultingOpaqueRect, RenderingSt ats&);
25 const gfx::Rect& contentRect() const { return m_contentRect; } 26 const gfx::Rect& contentRect() const { return m_contentRect; }
26 27
27 private: 28 private:
28 gfx::Rect m_contentRect; 29 gfx::Rect m_contentRect;
29 scoped_ptr<LayerPainter> m_painter; 30 scoped_ptr<LayerPainter> m_painter;
30 }; 31 };
31 32
32 } // namespace cc 33 } // namespace cc
33 34
34 #endif // ContentLayerUpdater_h 35 #endif // ContentLayerUpdater_h
OLDNEW
« no previous file with comments | « cc/content_layer.h ('k') | cc/contents_scaling_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698