| 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(scoped_ptr<LayerPa
interChromium>); | 35 static scoped_refptr<BitmapCanvasLayerTextureUpdater> create(scoped_ptr<Laye
rPainterChromium>); |
| 36 virtual ~BitmapCanvasLayerTextureUpdater(); | |
| 37 | 36 |
| 38 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized
TextureManager*) OVERRIDE; | 37 virtual scoped_ptr<LayerTextureUpdater::Texture> createTexture(CCPrioritized
TextureManager*) OVERRIDE; |
| 39 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI
DE; | 38 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; | 39 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); | 40 void updateTexture(CCTextureUpdateQueue&, CCPrioritizedTexture*, const IntRe
ct& sourceRect, const IntSize& destOffset, bool partialUpdate); |
| 42 | 41 |
| 43 virtual void setOpaque(bool) OVERRIDE; | 42 virtual void setOpaque(bool) OVERRIDE; |
| 44 | 43 |
| 45 protected: | 44 protected: |
| 46 explicit BitmapCanvasLayerTextureUpdater(scoped_ptr<LayerPainterChromium>); | 45 explicit BitmapCanvasLayerTextureUpdater(scoped_ptr<LayerPainterChromium>); |
| 46 virtual ~BitmapCanvasLayerTextureUpdater(); |
| 47 | 47 |
| 48 OwnPtr<SkCanvas> m_canvas; | 48 scoped_ptr<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 | 54 |
| 55 #endif // BitmapCanvasLayerTextureUpdater_h | 55 #endif // BitmapCanvasLayerTextureUpdater_h |
| OLD | NEW |