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 FakeWebCompositorOutputSurface_h | 5 #ifndef FakeWebCompositorOutputSurface_h |
6 #define FakeWebCompositorOutputSurface_h | 6 #define FakeWebCompositorOutputSurface_h |
7 | 7 |
8 #include <public/WebCompositorOutputSurface.h> | 8 #include <public/WebCompositorOutputSurface.h> |
9 #include <public/WebGraphicsContext3D.h> | 9 #include <public/WebGraphicsContext3D.h> |
| 10 #include <wtf/OwnPtr.h> |
| 11 #include <wtf/PassOwnPtr.h> |
10 | 12 |
11 namespace WebKit { | 13 namespace WebKit { |
12 | 14 |
13 class FakeWebCompositorOutputSurface : public WebCompositorOutputSurface { | 15 class FakeWebCompositorOutputSurface : public WebCompositorOutputSurface { |
14 public: | 16 public: |
15 static inline PassOwnPtr<FakeWebCompositorOutputSurface> create(PassOwnPtr<W
ebGraphicsContext3D> context3D) | 17 static inline PassOwnPtr<FakeWebCompositorOutputSurface> create(PassOwnPtr<W
ebGraphicsContext3D> context3D) |
16 { | 18 { |
17 return adoptPtr(new FakeWebCompositorOutputSurface(context3D)); | 19 return adoptPtr(new FakeWebCompositorOutputSurface(context3D)); |
18 } | 20 } |
19 | 21 |
(...skipping 28 matching lines...) Expand all Loading... |
48 } | 50 } |
49 | 51 |
50 OwnPtr<WebGraphicsContext3D> m_context3D; | 52 OwnPtr<WebGraphicsContext3D> m_context3D; |
51 Capabilities m_capabilities; | 53 Capabilities m_capabilities; |
52 WebCompositorOutputSurfaceClient* m_client; | 54 WebCompositorOutputSurfaceClient* m_client; |
53 }; | 55 }; |
54 | 56 |
55 } // namespace WebKit | 57 } // namespace WebKit |
56 | 58 |
57 #endif // FakeWebCompositorOutputSurface_h | 59 #endif // FakeWebCompositorOutputSurface_h |
OLD | NEW |