| 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_NINE_PATCH_LAYER_H_ | 5 #ifndef CC_NINE_PATCH_LAYER_H_ |
| 6 #define CC_NINE_PATCH_LAYER_H_ | 6 #define CC_NINE_PATCH_LAYER_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/base/cc_export.h" | 9 #include "cc/base/cc_export.h" |
| 10 #include "cc/image_layer_updater.h" | |
| 11 #include "cc/layer.h" | 10 #include "cc/layer.h" |
| 11 #include "cc/resources/image_layer_updater.h" |
| 12 #include "third_party/skia/include/core/SkBitmap.h" | 12 #include "third_party/skia/include/core/SkBitmap.h" |
| 13 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 14 | 14 |
| 15 namespace cc { | 15 namespace cc { |
| 16 | 16 |
| 17 class ResourceUpdateQueue; | 17 class ResourceUpdateQueue; |
| 18 | 18 |
| 19 class CC_EXPORT NinePatchLayer : public Layer { | 19 class CC_EXPORT NinePatchLayer : public Layer { |
| 20 public: | 20 public: |
| 21 static scoped_refptr<NinePatchLayer> Create(); | 21 static scoped_refptr<NinePatchLayer> Create(); |
| (...skipping 30 matching lines...) Expand all Loading... |
| 52 bool bitmap_dirty_; | 52 bool bitmap_dirty_; |
| 53 | 53 |
| 54 // The transparent center region that shows the parent layer's contents in | 54 // The transparent center region that shows the parent layer's contents in |
| 55 // image space. | 55 // image space. |
| 56 gfx::Rect image_aperture_; | 56 gfx::Rect image_aperture_; |
| 57 }; | 57 }; |
| 58 | 58 |
| 59 } // namespace cc | 59 } // namespace cc |
| 60 | 60 |
| 61 #endif // CC_NINE_PATCH_LAYER_H_ | 61 #endif // CC_NINE_PATCH_LAYER_H_ |
| OLD | NEW |