Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Side by Side Diff: content/common/gpu/client/context_provider_command_buffer.h

Issue 1827123002: Move content/common/gpu/client to gpu/ipc/client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_
6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // Implementation of cc::ContextProvider that provides a 26 // Implementation of cc::ContextProvider that provides a
27 // WebGraphicsContext3DCommandBufferImpl context and a GrContext. 27 // WebGraphicsContext3DCommandBufferImpl context and a GrContext.
28 class CONTENT_EXPORT ContextProviderCommandBuffer 28 class CONTENT_EXPORT ContextProviderCommandBuffer
29 : NON_EXPORTED_BASE(public cc_blink::ContextProviderWebContext) { 29 : NON_EXPORTED_BASE(public cc_blink::ContextProviderWebContext) {
30 public: 30 public:
31 static scoped_refptr<ContextProviderCommandBuffer> Create( 31 static scoped_refptr<ContextProviderCommandBuffer> Create(
32 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, 32 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
33 CommandBufferContextType type); 33 CommandBufferContextType type);
34 34
35 CommandBufferProxyImpl* GetCommandBufferProxy(); 35 gpu::CommandBufferProxyImpl* GetCommandBufferProxy();
36 36
37 // cc_blink::ContextProviderWebContext implementation. 37 // cc_blink::ContextProviderWebContext implementation.
38 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override; 38 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override;
39 39
40 // cc::ContextProvider implementation. 40 // cc::ContextProvider implementation.
41 bool BindToCurrentThread() override; 41 bool BindToCurrentThread() override;
42 void DetachFromThread() override; 42 void DetachFromThread() override;
43 gpu::gles2::GLES2Interface* ContextGL() override; 43 gpu::gles2::GLES2Interface* ContextGL() override;
44 gpu::ContextSupport* ContextSupport() override; 44 gpu::ContextSupport* ContextSupport() override;
45 class GrContext* GrContext() override; 45 class GrContext* GrContext() override;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 base::Lock context_lock_; 78 base::Lock context_lock_;
79 79
80 class LostContextCallbackProxy; 80 class LostContextCallbackProxy;
81 friend class LostContextCallbackProxy; 81 friend class LostContextCallbackProxy;
82 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; 82 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
83 }; 83 };
84 84
85 } // namespace content 85 } // namespace content
86 86
87 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_ 87 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.cc ('k') | content/common/gpu/client/context_provider_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698