| 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 CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ | 5 #ifndef CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ |
| 6 #define CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ | 6 #define CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ |
| 7 | 7 |
| 8 #include "cc/base/cc_export.h" | 8 #include "cc/base/cc_export.h" |
| 9 #include "cc/resources/layer_updater.h" | 9 #include "cc/resources/layer_updater.h" |
| 10 #include "third_party/skia/include/core/SkBitmap.h" | 10 #include "third_party/skia/include/core/SkBitmap.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 virtual scoped_ptr<LayerUpdater::Resource> CreateResource( | 37 virtual scoped_ptr<LayerUpdater::Resource> CreateResource( |
| 38 PrioritizedResourceManager*) OVERRIDE; | 38 PrioritizedResourceManager*) OVERRIDE; |
| 39 | 39 |
| 40 void UpdateTexture(ResourceUpdateQueue* queue, | 40 void UpdateTexture(ResourceUpdateQueue* queue, |
| 41 PrioritizedResource* texture, | 41 PrioritizedResource* texture, |
| 42 gfx::Rect source_rect, | 42 gfx::Rect source_rect, |
| 43 gfx::Vector2d dest_offset, | 43 gfx::Vector2d dest_offset, |
| 44 bool partial_update); | 44 bool partial_update); |
| 45 | 45 |
| 46 void set_bitmap(const SkBitmap& bitmap) { bitmap_ = bitmap; } | 46 void SetBitmap(const SkBitmap& bitmap); |
| 47 bool UsingBitmap(const SkBitmap& bitmap) const; |
| 47 | 48 |
| 48 private: | 49 private: |
| 49 ImageLayerUpdater() {} | 50 ImageLayerUpdater() {} |
| 50 virtual ~ImageLayerUpdater() {} | 51 virtual ~ImageLayerUpdater() {} |
| 51 | 52 |
| 52 SkBitmap bitmap_; | 53 SkBitmap bitmap_; |
| 53 | 54 |
| 54 DISALLOW_COPY_AND_ASSIGN(ImageLayerUpdater); | 55 DISALLOW_COPY_AND_ASSIGN(ImageLayerUpdater); |
| 55 }; | 56 }; |
| 56 | 57 |
| 57 } // namespace cc | 58 } // namespace cc |
| 58 | 59 |
| 59 #endif // CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ | 60 #endif // CC_RESOURCES_IMAGE_LAYER_UPDATER_H_ |
| OLD | NEW |