OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 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 #ifndef CACHING_BITMAP_CANVAS_LAYER_UPDATER_H_ | 5 #ifndef CC_CACHING_BITMAP_CONTENT_LAYER_UPDATER_H_ |
6 #define CACHING_BITMAP_CANVAS_LAYER_UPDATER_H_ | 6 #define CC_CACHING_BITMAP_CONTENT_LAYER_UPDATER_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "cc/bitmap_content_layer_updater.h" | 9 #include "cc/bitmap_content_layer_updater.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 class CachingBitmapContentLayerUpdater | 13 class CachingBitmapContentLayerUpdater |
14 : public BitmapContentLayerUpdater { | 14 : public BitmapContentLayerUpdater { |
15 public: | 15 public: |
16 static scoped_refptr<CachingBitmapContentLayerUpdater> Create( | 16 static scoped_refptr<CachingBitmapContentLayerUpdater> Create( |
(...skipping 12 matching lines...) Expand all Loading... |
29 explicit CachingBitmapContentLayerUpdater( | 29 explicit CachingBitmapContentLayerUpdater( |
30 scoped_ptr<LayerPainter> painter); | 30 scoped_ptr<LayerPainter> painter); |
31 virtual ~CachingBitmapContentLayerUpdater(); | 31 virtual ~CachingBitmapContentLayerUpdater(); |
32 | 32 |
33 bool pixels_did_change_; | 33 bool pixels_did_change_; |
34 SkBitmap cached_bitmap_; | 34 SkBitmap cached_bitmap_; |
35 }; | 35 }; |
36 | 36 |
37 } // namespace cc | 37 } // namespace cc |
38 | 38 |
39 #endif // CACHING_BITMAP_CANVAS_LAYER_UPDATER_H_ | 39 #endif // CC_CACHING_BITMAP_CONTENT_LAYER_UPDATER_H_ |
OLD | NEW |