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

Side by Side Diff: cc/FrameBufferSkPictureCanvasLayerTextureUpdater.h

Issue 11074009: cc: Remove LayerTextureUpdater::Texture::updateRect() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and move ClearUploadsToEvictedResources test to CCPrioritizedTextureTest. 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 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
11 #include "SkPictureCanvasLayerTextureUpdater.h" 11 #include "SkPictureCanvasLayerTextureUpdater.h"
12 12
13 class GrContext;
14
15 namespace WebKit {
16 class WebGraphicsContext3D;
17 class WebSharedGraphicsContext3D;
18 }
19
20 namespace cc { 13 namespace cc {
21 14
22 // This class records the contentRect into an SkPicture, then uses accelerated 15 // This class records the contentRect into an SkPicture, then uses accelerated
23 // drawing to update the texture. The accelerated drawing goes to an 16 // drawing to update the texture. The accelerated drawing goes to an
24 // intermediate framebuffer and then is copied to the destination texture once d one. 17 // intermediate framebuffer and then is copied to the destination texture once d one.
25 class FrameBufferSkPictureCanvasLayerTextureUpdater : public SkPictureCanvasLaye rTextureUpdater { 18 class FrameBufferSkPictureCanvasLayerTextureUpdater : public SkPictureCanvasLaye rTextureUpdater {
26 public: 19 public:
27 class Texture : public LayerTextureUpdater::Texture { 20 class Texture : public LayerTextureUpdater::Texture {
28 public: 21 public:
29 Texture(FrameBufferSkPictureCanvasLayerTextureUpdater*, scoped_ptr<CCPri oritizedTexture>); 22 Texture(FrameBufferSkPictureCanvasLayerTextureUpdater*, scoped_ptr<CCPri oritizedTexture>);
30 virtual ~Texture(); 23 virtual ~Texture();
31 24
32 virtual void updateRect(CCResourceProvider*, const IntRect& sourceRect, const IntSize& destOffset) OVERRIDE; 25 virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, co nst IntSize& destOffset, bool partialUpdate, CCRenderingStats&) OVERRIDE;
33 26
34 private: 27 private:
35 FrameBufferSkPictureCanvasLayerTextureUpdater* textureUpdater() { return m_textureUpdater; } 28 FrameBufferSkPictureCanvasLayerTextureUpdater* textureUpdater() { return m_textureUpdater; }
36 29
37 FrameBufferSkPictureCanvasLayerTextureUpdater* m_textureUpdater; 30 FrameBufferSkPictureCanvasLayerTextureUpdater* m_textureUpdater;
38 }; 31 };
39 32
40 static PassRefPtr<FrameBufferSkPictureCanvasLayerTextureUpdater> create(Pass OwnPtr<LayerPainterChromium>); 33 static PassRefPtr<FrameBufferSkPictureCanvasLayerTextureUpdater> create(Pass OwnPtr<LayerPainterChromium>);
41 virtual ~FrameBufferSkPictureCanvasLayerTextureUpdater(); 34 virtual ~FrameBufferSkPictureCanvasLayerTextureUpdater();
42 35
43 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized TextureManager*) OVERRIDE; 36 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized TextureManager*) OVERRIDE;
44 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI DE; 37 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI DE;
45 void updateTextureRect(WebKit::WebGraphicsContext3D*, GrContext*, CCResource Provider*, CCPrioritizedTexture*, const IntRect& sourceRect, const IntSize& dest Offset);
46 38
47 private: 39 private:
48 explicit FrameBufferSkPictureCanvasLayerTextureUpdater(PassOwnPtr<LayerPaint erChromium>); 40 explicit FrameBufferSkPictureCanvasLayerTextureUpdater(PassOwnPtr<LayerPaint erChromium>);
49 }; 41 };
50 } // namespace cc 42 } // namespace cc
51 #endif // USE(ACCELERATED_COMPOSITING) 43 #endif // USE(ACCELERATED_COMPOSITING)
52 #endif // FrameBufferSkPictureCanvasLayerTextureUpdater_h 44 #endif // FrameBufferSkPictureCanvasLayerTextureUpdater_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698