| 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 BitmapSkPictureCanvasLayerTextureUpdater_h | 6 #ifndef BitmapSkPictureCanvasLayerTextureUpdater_h |
| 7 #define BitmapSkPictureCanvasLayerTextureUpdater_h | 7 #define BitmapSkPictureCanvasLayerTextureUpdater_h |
| 8 | 8 |
| 9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
| 10 #include "SkPictureCanvasLayerTextureUpdater.h" | 10 #include "SkPictureCanvasLayerTextureUpdater.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, co
nst IntSize& destOffset, bool partialUpdate, CCRenderingStats&) OVERRIDE; | 22 virtual void update(CCTextureUpdateQueue&, const IntRect& sourceRect, co
nst IntSize& destOffset, bool partialUpdate, CCRenderingStats&) OVERRIDE; |
| 23 | 23 |
| 24 private: | 24 private: |
| 25 BitmapSkPictureCanvasLayerTextureUpdater* textureUpdater() { return m_te
xtureUpdater; } | 25 BitmapSkPictureCanvasLayerTextureUpdater* textureUpdater() { return m_te
xtureUpdater; } |
| 26 | 26 |
| 27 SkBitmap m_bitmap; | 27 SkBitmap m_bitmap; |
| 28 BitmapSkPictureCanvasLayerTextureUpdater* m_textureUpdater; | 28 BitmapSkPictureCanvasLayerTextureUpdater* m_textureUpdater; |
| 29 }; | 29 }; |
| 30 | 30 |
| 31 static PassRefPtr<BitmapSkPictureCanvasLayerTextureUpdater> create(scoped_pt
r<LayerPainterChromium>); | 31 static scoped_refptr<BitmapSkPictureCanvasLayerTextureUpdater> create(scoped
_ptr<LayerPainterChromium>); |
| 32 virtual ~BitmapSkPictureCanvasLayerTextureUpdater(); | |
| 33 | 32 |
| 34 virtual PassOwnPtr<LayerTextureUpdater::Texture> createTexture(CCPrioritized
TextureManager*) OVERRIDE; | 33 virtual scoped_ptr<LayerTextureUpdater::Texture> createTexture(CCPrioritized
TextureManager*) OVERRIDE; |
| 35 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI
DE; | 34 virtual SampledTexelFormat sampledTexelFormat(GC3Denum textureFormat) OVERRI
DE; |
| 36 void paintContentsRect(SkCanvas*, const IntRect& sourceRect, CCRenderingStat
s&); | 35 void paintContentsRect(SkCanvas*, const IntRect& sourceRect, CCRenderingStat
s&); |
| 37 | 36 |
| 38 private: | 37 private: |
| 39 explicit BitmapSkPictureCanvasLayerTextureUpdater(scoped_ptr<LayerPainterChr
omium>); | 38 explicit BitmapSkPictureCanvasLayerTextureUpdater(scoped_ptr<LayerPainterChr
omium>); |
| 39 virtual ~BitmapSkPictureCanvasLayerTextureUpdater(); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace cc | 42 } // namespace cc |
| 43 | 43 |
| 44 #endif // BitmapSkPictureCanvasLayerTextureUpdater_h | 44 #endif // BitmapSkPictureCanvasLayerTextureUpdater_h |
| OLD | NEW |