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 NinePatchLayer_h | 5 #ifndef CC_NINE_PATCH_LAYER_H_ |
6 #define NinePatchLayer_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/cc_export.h" | 9 #include "cc/cc_export.h" |
10 #include "cc/layer.h" | 10 #include "cc/layer.h" |
11 #include "cc/image_layer_updater.h" | 11 #include "cc/image_layer_updater.h" |
12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
13 #include "third_party/skia/include/core/SkBitmap.h" | 13 #include "third_party/skia/include/core/SkBitmap.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
(...skipping 26 matching lines...) Expand all Loading... |
43 scoped_refptr<ImageLayerUpdater> m_updater; | 43 scoped_refptr<ImageLayerUpdater> m_updater; |
44 scoped_ptr<LayerUpdater::Resource> m_resource; | 44 scoped_ptr<LayerUpdater::Resource> m_resource; |
45 | 45 |
46 SkBitmap m_bitmap; | 46 SkBitmap m_bitmap; |
47 bool m_bitmapDirty; | 47 bool m_bitmapDirty; |
48 | 48 |
49 // The transparent center region that shows the parent layer's contents in i
mage space. | 49 // The transparent center region that shows the parent layer's contents in i
mage space. |
50 gfx::Rect m_imageAperture; | 50 gfx::Rect m_imageAperture; |
51 }; | 51 }; |
52 | 52 |
53 } | 53 } // namespace cc |
54 | 54 |
55 #endif | 55 #endif // CC_NINE_PATCH_LAYER_H_ |
OLD | NEW |