OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_WEB_CONTEXT_H_ | 5 #ifndef WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_WEB_CONTEXT_H_ |
6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_WEB_CONTEXT_H_ | 6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_WEB_CONTEXT_H_ |
7 | 7 |
8 #include "cc/output/context_provider.h" | 8 #include "cc/output/context_provider.h" |
9 | 9 |
10 namespace blink { class WebGraphicsContext3D; } | 10 namespace blink { class WebGraphicsContext3D; } |
11 | 11 |
12 namespace webkit { | 12 namespace webkit { |
13 namespace gpu { | 13 namespace gpu { |
14 | 14 |
15 class ContextProviderWebContext : public cc::ContextProvider { | 15 class ContextProviderWebContext : public cc::ContextProvider { |
16 public: | 16 public: |
17 virtual blink::WebGraphicsContext3D* WebContext3D() = 0; | 17 virtual blink::WebGraphicsContext3D* WebContext3D() = 0; |
18 | 18 |
19 protected: | 19 protected: |
20 virtual ~ContextProviderWebContext() {} | 20 ~ContextProviderWebContext() override {} |
21 }; | 21 }; |
22 | 22 |
23 } // namespace gpu | 23 } // namespace gpu |
24 } // namespace webkit | 24 } // namespace webkit |
25 | 25 |
26 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_WEB_CONTEXT_H_ | 26 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_WEB_CONTEXT_H_ |
OLD | NEW |