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

Side by Side Diff: cc/bitmap_canvas_layer_texture_updater.h

Issue 11150025: Patch from https://codereview.chromium.org/11111005/ without actual file deletes (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 | « no previous file | cc/bitmap_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 BitmapCanvasLayerTextureUpdater_h 6 #ifndef BitmapCanvasLayerTextureUpdater_h
7 #define BitmapCanvasLayerTextureUpdater_h 7 #define BitmapCanvasLayerTextureUpdater_h
8 8
9 #include "CanvasLayerTextureUpdater.h" 9 #include "CanvasLayerTextureUpdater.h"
10 10
(...skipping 18 matching lines...) Expand all
29 private: 29 private:
30 BitmapCanvasLayerTextureUpdater* textureUpdater() { return m_textureUpda ter; } 30 BitmapCanvasLayerTextureUpdater* textureUpdater() { return m_textureUpda ter; }
31 31
32 BitmapCanvasLayerTextureUpdater* m_textureUpdater; 32 BitmapCanvasLayerTextureUpdater* m_textureUpdater;
33 }; 33 };
34 34
35 static PassRefPtr<BitmapCanvasLayerTextureUpdater> create(PassOwnPtr<LayerPa interChromium>); 35 static PassRefPtr<BitmapCanvasLayerTextureUpdater> create(PassOwnPtr<LayerPa interChromium>);
36 virtual ~BitmapCanvasLayerTextureUpdater(); 36 virtual ~BitmapCanvasLayerTextureUpdater();
37 37
38 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized TextureManager*) OVERRIDE; 38 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized TextureManager*) OVERRIDE;
39 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI DE; 39 virtual SampledTexelFormat sampledTexelFormat(GLenum textureFormat) OVERRIDE ;
40 virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tile Size, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpa queRect, CCRenderingStats&) OVERRIDE; 40 virtual void prepareToUpdate(const IntRect& contentRect, const IntSize& tile Size, float contentsWidthScale, float contentsHeightScale, IntRect& resultingOpa queRect, CCRenderingStats&) OVERRIDE;
41 void updateTexture(CCTextureUpdateQueue&, CCPrioritizedTexture*, const IntRe ct& sourceRect, const IntSize& destOffset, bool partialUpdate); 41 void updateTexture(CCTextureUpdateQueue&, CCPrioritizedTexture*, const IntRe ct& sourceRect, const IntSize& destOffset, bool partialUpdate);
42 42
43 virtual void setOpaque(bool) OVERRIDE; 43 virtual void setOpaque(bool) OVERRIDE;
44 44
45 protected: 45 protected:
46 explicit BitmapCanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium>); 46 explicit BitmapCanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium>);
47 47
48 OwnPtr<SkCanvas> m_canvas; 48 OwnPtr<SkCanvas> m_canvas;
49 IntSize m_canvasSize; 49 IntSize m_canvasSize;
50 bool m_opaque; 50 bool m_opaque;
51 }; 51 };
52 52
53 } // namespace cc 53 } // namespace cc
54 #endif // BitmapCanvasLayerTextureUpdater_h 54 #endif // BitmapCanvasLayerTextureUpdater_h
OLDNEW
« no previous file with comments | « no previous file | cc/bitmap_canvas_layer_texture_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698