OLD | NEW |
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 14 matching lines...) Expand all Loading... |
25 virtual ~Texture(); | 25 virtual ~Texture(); |
26 | 26 |
27 virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, co
nst IntSize& destOffset, bool partialUpdate, CCRenderingStats&) OVERRIDE; | 27 virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, co
nst IntSize& destOffset, bool partialUpdate, CCRenderingStats&) OVERRIDE; |
28 | 28 |
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(scoped_ptr<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(GC3Denum textureFormat) OVERRI
DE; |
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(scoped_ptr<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 |
| 55 #endif // BitmapCanvasLayerTextureUpdater_h |
OLD | NEW |