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

Side by Side Diff: cc/frame_buffer_skpicture_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 5
6 #ifndef FrameBufferSkPictureCanvasLayerTextureUpdater_h 6 #ifndef FrameBufferSkPictureCanvasLayerTextureUpdater_h
7 #define FrameBufferSkPictureCanvasLayerTextureUpdater_h 7 #define FrameBufferSkPictureCanvasLayerTextureUpdater_h
8 8
9 #include "cc/skpicture_canvas_layer_texture_updater.h" 9 #include "cc/skpicture_canvas_layer_texture_updater.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 // This class records the contentRect into an SkPicture, then uses accelerated 13 // This class records the contentRect into an SkPicture, then uses accelerated
14 // drawing to update the texture. The accelerated drawing goes to an 14 // drawing to update the texture. The accelerated drawing goes to an
15 // intermediate framebuffer and then is copied to the destination texture once d one. 15 // intermediate framebuffer and then is copied to the destination texture once d one.
16 class FrameBufferSkPictureCanvasLayerTextureUpdater : public SkPictureCanvasLaye rTextureUpdater { 16 class FrameBufferSkPictureCanvasLayerTextureUpdater : public SkPictureCanvasLaye rTextureUpdater {
17 public: 17 public:
18 class Texture : public LayerTextureUpdater::Texture { 18 class Texture : public LayerTextureUpdater::Texture {
19 public: 19 public:
20 Texture(FrameBufferSkPictureCanvasLayerTextureUpdater*, scoped_ptr<CCPri oritizedTexture>); 20 Texture(FrameBufferSkPictureCanvasLayerTextureUpdater*, scoped_ptr<Prior itizedTexture>);
21 virtual ~Texture(); 21 virtual ~Texture();
22 22
23 virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, co nst IntSize& destOffset, bool partialUpdate, CCRenderingStats&) OVERRIDE; 23 virtual void update(TextureUpdateQueue&, const IntRect& sourceRect, cons t IntSize& destOffset, bool partialUpdate, RenderingStats&) OVERRIDE;
24 24
25 private: 25 private:
26 FrameBufferSkPictureCanvasLayerTextureUpdater* textureUpdater() { return m_textureUpdater; } 26 FrameBufferSkPictureCanvasLayerTextureUpdater* textureUpdater() { return m_textureUpdater; }
27 27
28 FrameBufferSkPictureCanvasLayerTextureUpdater* m_textureUpdater; 28 FrameBufferSkPictureCanvasLayerTextureUpdater* m_textureUpdater;
29 }; 29 };
30 30
31 static scoped_refptr<FrameBufferSkPictureCanvasLayerTextureUpdater> create(s coped_ptr<LayerPainterChromium>); 31 static scoped_refptr<FrameBufferSkPictureCanvasLayerTextureUpdater> create(s coped_ptr<LayerPainter>);
32 32
33 virtual scoped_ptr<LayerTextureUpdater::Texture> createTexture(CCPrioritized TextureManager*) OVERRIDE; 33 virtual scoped_ptr<LayerTextureUpdater::Texture> createTexture(PrioritizedTe xtureManager*) OVERRIDE;
34 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI DE; 34 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI DE;
35 35
36 private: 36 private:
37 explicit FrameBufferSkPictureCanvasLayerTextureUpdater(scoped_ptr<LayerPaint erChromium>); 37 explicit FrameBufferSkPictureCanvasLayerTextureUpdater(scoped_ptr<LayerPaint er>);
38 virtual ~FrameBufferSkPictureCanvasLayerTextureUpdater(); 38 virtual ~FrameBufferSkPictureCanvasLayerTextureUpdater();
39 }; 39 };
40 } // namespace cc 40 } // namespace cc
41 #endif // FrameBufferSkPictureCanvasLayerTextureUpdater_h 41 #endif // FrameBufferSkPictureCanvasLayerTextureUpdater_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698