| 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 CC_BLINK_CONTEXT_PROVIDER_WEB_CONTEXT_H_ |
| 6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_WEB_CONTEXT_H_ | 6 #define CC_BLINK_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 cc_blink { |
| 13 namespace gpu { | |
| 14 | 13 |
| 15 class ContextProviderWebContext : public cc::ContextProvider { | 14 class ContextProviderWebContext : public cc::ContextProvider { |
| 16 public: | 15 public: |
| 17 virtual blink::WebGraphicsContext3D* WebContext3D() = 0; | 16 virtual blink::WebGraphicsContext3D* WebContext3D() = 0; |
| 18 | 17 |
| 19 protected: | 18 protected: |
| 20 ~ContextProviderWebContext() override {} | 19 ~ContextProviderWebContext() override {} |
| 21 }; | 20 }; |
| 22 | 21 |
| 23 } // namespace gpu | 22 } // namespace cc_blink |
| 24 } // namespace webkit | |
| 25 | 23 |
| 26 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_WEB_CONTEXT_H_ | 24 #endif // CC_BLINK_CONTEXT_PROVIDER_WEB_CONTEXT_H_ |
| OLD | NEW |