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

Side by Side Diff: cc/skpicture_canvas_layer_texture_updater.h

Issue 11074009: cc: Remove LayerTextureUpdater::Texture::updateRect() callback. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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/scrollbar_layer.cc ('k') | cc/skpicture_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 5
6 #ifndef SkPictureCanvasLayerTextureUpdater_h 6 #ifndef SkPictureCanvasLayerTextureUpdater_h
7 #define SkPictureCanvasLayerTextureUpdater_h 7 #define SkPictureCanvasLayerTextureUpdater_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
(...skipping 15 matching lines...) Expand all
26 public: 26 public:
27 virtual ~SkPictureCanvasLayerTextureUpdater(); 27 virtual ~SkPictureCanvasLayerTextureUpdater();
28 28
29 virtual void setOpaque(bool) OVERRIDE; 29 virtual void setOpaque(bool) OVERRIDE;
30 30
31 protected: 31 protected:
32 explicit SkPictureCanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium> ); 32 explicit SkPictureCanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium> );
33 33
34 virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tile Size, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpa queRect, CCRenderingStats&) OVERRIDE; 34 virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tile Size, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpa queRect, CCRenderingStats&) OVERRIDE;
35 void drawPicture(SkCanvas*); 35 void drawPicture(SkCanvas*);
36 void updateTexture(CCTextureUpdateQueue& queue, CCPrioritizedTexture* textur e, const IntRect& sourceRect, const IntSize& destOffset, bool partialUpdate);
36 37
37 bool layerIsOpaque() const { return m_layerIsOpaque; } 38 bool layerIsOpaque() const { return m_layerIsOpaque; }
38 39
39 private: 40 private:
40 // Recording canvas. 41 // Recording canvas.
41 SkPicture m_picture; 42 SkPicture m_picture;
42 // True when it is known that all output pixels will be opaque. 43 // True when it is known that all output pixels will be opaque.
43 bool m_layerIsOpaque; 44 bool m_layerIsOpaque;
44 }; 45 };
45 46
46 } // namespace cc 47 } // namespace cc
47 #endif // USE(ACCELERATED_COMPOSITING) 48 #endif // USE(ACCELERATED_COMPOSITING)
48 #endif // SkPictureCanvasLayerTextureUpdater_h 49 #endif // SkPictureCanvasLayerTextureUpdater_h
OLDNEW
« no previous file with comments | « cc/scrollbar_layer.cc ('k') | cc/skpicture_canvas_layer_texture_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698