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

Side by Side Diff: cc/canvas_layer_texture_updater.h

Issue 11189043: cc: Rename cc classes and members to match filenames (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
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 CanvasLayerTextureUpdater_h 5 #ifndef CanvasLayerTextureUpdater_h
6 #define CanvasLayerTextureUpdater_h 6 #define CanvasLayerTextureUpdater_h
7 7
8 #include "cc/layer_texture_updater.h" 8 #include "cc/layer_texture_updater.h"
9 9
10 class SkCanvas; 10 class SkCanvas;
11 11
12 namespace cc { 12 namespace cc {
13 13
14 class LayerPainterChromium; 14 class LayerPainter;
15 15
16 // Base class for BitmapCanvasLayerTextureUpdater and 16 // Base class for BitmapCanvasLayerTextureUpdater and
17 // SkPictureCanvasLayerTextureUpdater that reduces code duplication between 17 // SkPictureCanvasLayerTextureUpdater that reduces code duplication between
18 // their respective paintContents implementations. 18 // their respective paintContents implementations.
19 class CanvasLayerTextureUpdater : public LayerTextureUpdater { 19 class CanvasLayerTextureUpdater : public LayerTextureUpdater {
20 protected: 20 protected:
21 explicit CanvasLayerTextureUpdater(scoped_ptr<LayerPainterChromium>); 21 explicit CanvasLayerTextureUpdater(scoped_ptr<LayerPainter>);
22 virtual ~CanvasLayerTextureUpdater(); 22 virtual ~CanvasLayerTextureUpdater();
23 23
24 void paintContents(SkCanvas*, const IntRect& contentRect, float contentsWidt hScale, float contentsHeightScale, IntRect& resultingOpaqueRect, CCRenderingStat s&); 24 void paintContents(SkCanvas*, const IntRect& contentRect, float contentsWidt hScale, float contentsHeightScale, IntRect& resultingOpaqueRect, RenderingStats& );
25 const IntRect& contentRect() const { return m_contentRect; } 25 const IntRect& contentRect() const { return m_contentRect; }
26 26
27 private: 27 private:
28 IntRect m_contentRect; 28 IntRect m_contentRect;
29 scoped_ptr<LayerPainterChromium> m_painter; 29 scoped_ptr<LayerPainter> m_painter;
30 }; 30 };
31 31
32 } // namespace cc 32 } // namespace cc
33 33
34 #endif // CanvasLayerTextureUpdater_h 34 #endif // CanvasLayerTextureUpdater_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698