Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CACHING_BITMAP_CANVAS_LAYER_TEXTURE_UPDATER_H_ | |
| 6 #define CACHING_BITMAP_CANVAS_LAYER_TEXTURE_UPDATER_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "BitmapCanvasLayerTextureUpdater.h" | |
| 10 | |
| 11 namespace cc { | |
| 12 | |
| 13 class CachingBitmapCanvasLayerTextureUpdater | |
| 14 : public BitmapCanvasLayerTextureUpdater { | |
| 15 public: | |
| 16 static PassRefPtr<CachingBitmapCanvasLayerTextureUpdater> Create( | |
| 17 PassOwnPtr<LayerPainterChromium>); | |
| 18 | |
| 19 virtual void prepareToUpdate(const IntRect& content_rect, | |
| 20 const IntSize& tile_size, | |
| 21 float contents_width_scale, | |
| 22 float contents_height_scale, | |
| 23 IntRect& resulting_opaque_rect, | |
| 24 CCRenderingStats&) OVERRIDE; | |
| 25 | |
| 26 virtual bool pixelsDidChange() const OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 CachingBitmapCanvasLayerTextureUpdater( | |
|
jamesr
2012/10/03 19:29:13
explicit
wjmaclean
2012/10/03 20:14:30
Done.
| |
| 30 PassOwnPtr<LayerPainterChromium> painter); | |
| 31 | |
| 32 bool pixels_did_change_; | |
| 33 SkBitmap cached_bitmap_; | |
| 34 }; | |
| 35 | |
| 36 } // namespace cc | |
| 37 | |
| 38 #endif // CACHINGBITMAPCANVASLAYERTEXTUREUPDATER_H_ | |
|
enne (OOO)
2012/10/03 19:31:43
CACHING_BITMAP_CANVAS_LAYER_TEXTURE_UPDATER_H_
wjmaclean
2012/10/03 20:14:30
Done.
| |
| OLD | NEW |