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

Side by Side Diff: cc/content_layer_updater.h

Issue 12472028: Part 1 of cc/ directory shuffles: base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 #ifndef CC_CONTENT_LAYER_UPDATER_H_ 5 #ifndef CC_CONTENT_LAYER_UPDATER_H_
6 #define CC_CONTENT_LAYER_UPDATER_H_ 6 #define CC_CONTENT_LAYER_UPDATER_H_
7 7
8 #include "cc/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/layer_updater.h" 9 #include "cc/layer_updater.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 11
12 class SkCanvas; 12 class SkCanvas;
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class LayerPainter; 16 class LayerPainter;
17 17
18 // Base class for BitmapContentLayerUpdater and 18 // Base class for BitmapContentLayerUpdater and
19 // SkPictureContentLayerUpdater that reduces code duplication between 19 // SkPictureContentLayerUpdater that reduces code duplication between
20 // their respective paintContents implementations. 20 // their respective paintContents implementations.
21 class CC_EXPORT ContentLayerUpdater : public LayerUpdater { 21 class CC_EXPORT ContentLayerUpdater : public LayerUpdater {
22 protected: 22 protected:
23 explicit ContentLayerUpdater(scoped_ptr<LayerPainter>); 23 explicit ContentLayerUpdater(scoped_ptr<LayerPainter>);
24 virtual ~ContentLayerUpdater(); 24 virtual ~ContentLayerUpdater();
25 25
26 void paintContents(SkCanvas*, const gfx::Rect& contentRect, float contentsWi dthScale, float contentsHeightScale, gfx::Rect& resultingOpaqueRect, RenderingSt ats*); 26 void paintContents(SkCanvas*, const gfx::Rect& contentRect, float contentsWi dthScale, float contentsHeightScale, gfx::Rect& resultingOpaqueRect, RenderingSt ats*);
27 const gfx::Rect& contentRect() const { return m_contentRect; } 27 const gfx::Rect& contentRect() const { return m_contentRect; }
28 28
29 private: 29 private:
30 gfx::Rect m_contentRect; 30 gfx::Rect m_contentRect;
31 scoped_ptr<LayerPainter> m_painter; 31 scoped_ptr<LayerPainter> m_painter;
32 }; 32 };
33 33
34 } // namespace cc 34 } // namespace cc
35 35
36 #endif // CC_CONTENT_LAYER_UPDATER_H_ 36 #endif // CC_CONTENT_LAYER_UPDATER_H_
OLDNEW
« cc/cc.gyp ('K') | « cc/content_layer_client.h ('k') | cc/contents_scaling_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698