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 | 5 |
6 #ifndef ImageLayerChromium_h | 6 #ifndef ImageLayerChromium_h |
7 #define ImageLayerChromium_h | 7 #define ImageLayerChromium_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
11 #include "ContentLayerChromium.h" | 11 #include "ContentLayerChromium.h" |
12 #include "SkBitmap.h" | 12 #include "SkBitmap.h" |
13 | 13 |
14 namespace WebCore { | 14 namespace cc { |
15 | 15 |
16 class ImageLayerTextureUpdater; | 16 class ImageLayerTextureUpdater; |
17 | 17 |
18 // A Layer that contains only an Image element. | 18 // A Layer that contains only an Image element. |
19 class ImageLayerChromium : public TiledLayerChromium { | 19 class ImageLayerChromium : public TiledLayerChromium { |
20 public: | 20 public: |
21 static PassRefPtr<ImageLayerChromium> create(); | 21 static PassRefPtr<ImageLayerChromium> create(); |
22 virtual ~ImageLayerChromium(); | 22 virtual ~ImageLayerChromium(); |
23 | 23 |
24 virtual bool drawsContent() const OVERRIDE; | 24 virtual bool drawsContent() const OVERRIDE; |
(...skipping 14 matching lines...) Expand all Loading... |
39 | 39 |
40 SkBitmap m_bitmap; | 40 SkBitmap m_bitmap; |
41 | 41 |
42 RefPtr<ImageLayerTextureUpdater> m_textureUpdater; | 42 RefPtr<ImageLayerTextureUpdater> m_textureUpdater; |
43 }; | 43 }; |
44 | 44 |
45 } | 45 } |
46 #endif // USE(ACCELERATED_COMPOSITING) | 46 #endif // USE(ACCELERATED_COMPOSITING) |
47 | 47 |
48 #endif | 48 #endif |
OLD | NEW |