| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SharedGpuContext_h |
| 6 #define SharedGpuContext_h |
| 7 |
| 5 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 6 #include "platform/wtf/ThreadSpecific.h" | 9 #include "platform/wtf/ThreadSpecific.h" |
| 7 | 10 |
| 8 #include <memory> | 11 #include <memory> |
| 9 | 12 |
| 10 namespace gpu { | 13 namespace gpu { |
| 11 namespace gles2 { | 14 namespace gles2 { |
| 12 class GLES2Interface; | 15 class GLES2Interface; |
| 13 } | 16 } |
| 14 } | 17 } |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 void CreateContextProviderOnMainThread(WaitableEvent*); | 56 void CreateContextProviderOnMainThread(WaitableEvent*); |
| 54 void CreateContextProviderIfNeeded(); | 57 void CreateContextProviderIfNeeded(); |
| 55 | 58 |
| 56 ContextProviderFactory context_provider_factory_ = nullptr; | 59 ContextProviderFactory context_provider_factory_ = nullptr; |
| 57 std::unique_ptr<WebGraphicsContext3DProvider> context_provider_; | 60 std::unique_ptr<WebGraphicsContext3DProvider> context_provider_; |
| 58 unsigned context_id_; | 61 unsigned context_id_; |
| 59 friend class WTF::ThreadSpecific<SharedGpuContext>; | 62 friend class WTF::ThreadSpecific<SharedGpuContext>; |
| 60 }; | 63 }; |
| 61 | 64 |
| 62 } // blink | 65 } // blink |
| 66 |
| 67 #endif // SharedGpuContext_h |
| OLD | NEW |