Index: cc/caching_bitmap_canvas_layer_texture_updater.h |
diff --git a/cc/caching_bitmap_canvas_layer_texture_updater.h b/cc/caching_bitmap_canvas_layer_texture_updater.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..71284bbc79d8fba434acfdced151c3832fcccf96 |
--- /dev/null |
+++ b/cc/caching_bitmap_canvas_layer_texture_updater.h |
@@ -0,0 +1,38 @@ |
+// Copyright 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CACHING_BITMAP_CANVAS_LAYER_TEXTURE_UPDATER_H_ |
+#define CACHING_BITMAP_CANVAS_LAYER_TEXTURE_UPDATER_H_ |
+ |
+#include "base/compiler_specific.h" |
+#include "BitmapCanvasLayerTextureUpdater.h" |
+ |
+namespace cc { |
+ |
+class CachingBitmapCanvasLayerTextureUpdater |
+ : public BitmapCanvasLayerTextureUpdater { |
+ public: |
+ static PassRefPtr<CachingBitmapCanvasLayerTextureUpdater> Create( |
+ PassOwnPtr<LayerPainterChromium>); |
+ |
+ virtual void prepareToUpdate(const IntRect& content_rect, |
+ const IntSize& tile_size, |
+ float contents_width_scale, |
+ float contents_height_scale, |
+ IntRect& resulting_opaque_rect, |
+ CCRenderingStats&) OVERRIDE; |
+ |
+ virtual bool pixelsDidChange() const OVERRIDE; |
+ |
+ private: |
+ CachingBitmapCanvasLayerTextureUpdater( |
jamesr
2012/10/03 19:29:13
explicit
wjmaclean
2012/10/03 20:14:30
Done.
|
+ PassOwnPtr<LayerPainterChromium> painter); |
+ |
+ bool pixels_did_change_; |
+ SkBitmap cached_bitmap_; |
+}; |
+ |
+} // namespace cc |
+ |
+#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.
|