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 | 5 // Temporary forwarding header |
6 #ifndef IOSurfaceLayerChromium_h | 6 #include "cc/io_surface_layer.h" |
7 #define IOSurfaceLayerChromium_h | |
8 | |
9 #if USE(ACCELERATED_COMPOSITING) | |
10 | |
11 #include "LayerChromium.h" | |
12 | |
13 namespace cc { | |
14 | |
15 class IOSurfaceLayerChromium : public LayerChromium { | |
16 public: | |
17 static scoped_refptr<IOSurfaceLayerChromium> create(); | |
18 | |
19 void setIOSurfaceProperties(uint32_t ioSurfaceId, const IntSize&); | |
20 | |
21 virtual scoped_ptr<CCLayerImpl> createCCLayerImpl() OVERRIDE; | |
22 virtual bool drawsContent() const OVERRIDE; | |
23 virtual void pushPropertiesTo(CCLayerImpl*) OVERRIDE; | |
24 | |
25 protected: | |
26 IOSurfaceLayerChromium(); | |
27 | |
28 private: | |
29 virtual ~IOSurfaceLayerChromium(); | |
30 | |
31 uint32_t m_ioSurfaceId; | |
32 IntSize m_ioSurfaceSize; | |
33 }; | |
34 | |
35 } | |
36 #endif // USE(ACCELERATED_COMPOSITING) | |
37 | |
38 #endif | |
OLD | NEW |