OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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 ImageLayerChromium_h | 5 #ifndef ImageLayerChromium_h |
6 #define ImageLayerChromium_h | 6 #define ImageLayerChromium_h |
7 | 7 |
8 #include "ContentLayerChromium.h" | 8 #include "cc/content_layer.h" |
9 #include "third_party/skia/include/core/SkBitmap.h" | 9 #include "third_party/skia/include/core/SkBitmap.h" |
10 | 10 |
11 namespace cc { | 11 namespace cc { |
12 | 12 |
13 class ImageLayerTextureUpdater; | 13 class ImageLayerTextureUpdater; |
14 | 14 |
15 // A Layer that contains only an Image element. | 15 // A Layer that contains only an Image element. |
16 class ImageLayerChromium : public TiledLayerChromium { | 16 class ImageLayerChromium : public TiledLayerChromium { |
17 public: | 17 public: |
18 static scoped_refptr<ImageLayerChromium> create(); | 18 static scoped_refptr<ImageLayerChromium> create(); |
(...skipping 16 matching lines...) Expand all Loading... |
35 virtual IntSize contentBounds() const OVERRIDE; | 35 virtual IntSize contentBounds() const OVERRIDE; |
36 | 36 |
37 SkBitmap m_bitmap; | 37 SkBitmap m_bitmap; |
38 | 38 |
39 RefPtr<ImageLayerTextureUpdater> m_textureUpdater; | 39 RefPtr<ImageLayerTextureUpdater> m_textureUpdater; |
40 }; | 40 }; |
41 | 41 |
42 } // namespace cc | 42 } // namespace cc |
43 | 43 |
44 #endif | 44 #endif |
OLD | NEW |