OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_IN_PROCESS_H_ | 5 #ifndef WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ |
6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ | 6 #define WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 : NON_EXPORTED_BASE(public cc::ContextProvider) { | 23 : NON_EXPORTED_BASE(public cc::ContextProvider) { |
24 public: | 24 public: |
25 static scoped_refptr<ContextProviderInProcess> Create( | 25 static scoped_refptr<ContextProviderInProcess> Create( |
26 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d, | 26 scoped_ptr<WebGraphicsContext3DInProcessCommandBufferImpl> context3d, |
27 const std::string& debug_name); | 27 const std::string& debug_name); |
28 | 28 |
29 // Calls Create() with a default factory method for creating an offscreen | 29 // Calls Create() with a default factory method for creating an offscreen |
30 // context. | 30 // context. |
31 static scoped_refptr<ContextProviderInProcess> CreateOffscreen(); | 31 static scoped_refptr<ContextProviderInProcess> CreateOffscreen(); |
32 | 32 |
33 blink::WebGraphicsContext3D* Context3d(); | |
34 | |
35 virtual bool BindToCurrentThread() OVERRIDE; | 33 virtual bool BindToCurrentThread() OVERRIDE; |
36 virtual Capabilities ContextCapabilities() OVERRIDE; | 34 virtual Capabilities ContextCapabilities() OVERRIDE; |
37 virtual ::gpu::gles2::GLES2Interface* ContextGL() OVERRIDE; | 35 virtual ::gpu::gles2::GLES2Interface* ContextGL() OVERRIDE; |
38 virtual ::gpu::ContextSupport* ContextSupport() OVERRIDE; | 36 virtual ::gpu::ContextSupport* ContextSupport() OVERRIDE; |
39 virtual class GrContext* GrContext() OVERRIDE; | 37 virtual class GrContext* GrContext() OVERRIDE; |
40 virtual void MakeGrContextCurrent() OVERRIDE; | 38 virtual void MakeGrContextCurrent() OVERRIDE; |
41 virtual bool IsContextLost() OVERRIDE; | 39 virtual bool IsContextLost() OVERRIDE; |
42 virtual void VerifyContexts() OVERRIDE; | 40 virtual void VerifyContexts() OVERRIDE; |
43 virtual bool DestroyedOnMainThread() OVERRIDE; | 41 virtual bool DestroyedOnMainThread() OVERRIDE; |
44 virtual void SetLostContextCallback( | 42 virtual void SetLostContextCallback( |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 74 |
77 cc::ContextProvider::Capabilities capabilities_; | 75 cc::ContextProvider::Capabilities capabilities_; |
78 | 76 |
79 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); | 77 DISALLOW_COPY_AND_ASSIGN(ContextProviderInProcess); |
80 }; | 78 }; |
81 | 79 |
82 } // namespace gpu | 80 } // namespace gpu |
83 } // namespace webkit | 81 } // namespace webkit |
84 | 82 |
85 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ | 83 #endif // WEBKIT_COMMON_GPU_CONTEXT_PROVIDER_IN_PROCESS_H_ |
OLD | NEW |