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

Side by Side Diff: cc/canvas_layer_texture_updater.h

Issue 11189011: cc: Remove the temporary header files that aren't prefixed with CC* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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
« no previous file with comments | « cc/caching_bitmap_canvas_layer_texture_updater.cc ('k') | cc/canvas_layer_texture_updater.cc » ('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
6 #ifndef CanvasLayerTextureUpdater_h 5 #ifndef CanvasLayerTextureUpdater_h
7 #define CanvasLayerTextureUpdater_h 6 #define CanvasLayerTextureUpdater_h
8 7
9 #include "LayerTextureUpdater.h" 8 #include "cc/layer_texture_updater.h"
10 9
11 class SkCanvas; 10 class SkCanvas;
12 11
13 namespace cc { 12 namespace cc {
14 13
15 class LayerPainterChromium; 14 class LayerPainterChromium;
16 15
17 // Base class for BitmapCanvasLayerTextureUpdater and 16 // Base class for BitmapCanvasLayerTextureUpdater and
18 // SkPictureCanvasLayerTextureUpdater that reduces code duplication between 17 // SkPictureCanvasLayerTextureUpdater that reduces code duplication between
19 // their respective paintContents implementations. 18 // their respective paintContents implementations.
20 class CanvasLayerTextureUpdater : public LayerTextureUpdater { 19 class CanvasLayerTextureUpdater : public LayerTextureUpdater {
21 public: 20 public:
22 virtual ~CanvasLayerTextureUpdater(); 21 virtual ~CanvasLayerTextureUpdater();
23 22
24 protected: 23 protected:
25 explicit CanvasLayerTextureUpdater(scoped_ptr<LayerPainterChromium>); 24 explicit CanvasLayerTextureUpdater(scoped_ptr<LayerPainterChromium>);
26 25
27 void paintContents(SkCanvas*, const IntRect& contentRect, float contentsWidt hScale, float contentsHeightScale, IntRect& resultingOpaqueRect, CCRenderingStat s&); 26 void paintContents(SkCanvas*, const IntRect& contentRect, float contentsWidt hScale, float contentsHeightScale, IntRect& resultingOpaqueRect, CCRenderingStat s&);
28 const IntRect& contentRect() const { return m_contentRect; } 27 const IntRect& contentRect() const { return m_contentRect; }
29 28
30 private: 29 private:
31 IntRect m_contentRect; 30 IntRect m_contentRect;
32 scoped_ptr<LayerPainterChromium> m_painter; 31 scoped_ptr<LayerPainterChromium> m_painter;
33 }; 32 };
34 33
35 } // namespace cc 34 } // namespace cc
36 35
37 #endif // CanvasLayerTextureUpdater_h 36 #endif // CanvasLayerTextureUpdater_h
OLDNEW
« no previous file with comments | « cc/caching_bitmap_canvas_layer_texture_updater.cc ('k') | cc/canvas_layer_texture_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698