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

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

Issue 889063002: (not for commit) Create 2nd ContextProvider for Ganesh rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 5 #ifndef CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER
6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER 6 #define CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER
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 20 matching lines...) Expand all
31 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d, 31 scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context3d,
32 const std::string& debug_name); 32 const std::string& debug_name);
33 33
34 CommandBufferProxyImpl* GetCommandBufferProxy(); 34 CommandBufferProxyImpl* GetCommandBufferProxy();
35 35
36 // ContextProviderWebContext implementation. 36 // ContextProviderWebContext implementation.
37 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override; 37 WebGraphicsContext3DCommandBufferImpl* WebContext3D() override;
38 38
39 // cc::ContextProvider implementation. 39 // cc::ContextProvider implementation.
40 bool BindToCurrentThread() override; 40 bool BindToCurrentThread() override;
41 void RebindToCurrentThread() override;
41 gpu::gles2::GLES2Interface* ContextGL() override; 42 gpu::gles2::GLES2Interface* ContextGL() override;
42 gpu::ContextSupport* ContextSupport() override; 43 gpu::ContextSupport* ContextSupport() override;
43 class GrContext* GrContext() override; 44 class GrContext* GrContext() override;
44 Capabilities ContextCapabilities() override; 45 Capabilities ContextCapabilities() override;
45 bool IsContextLost() override; 46 bool IsContextLost() override;
46 void VerifyContexts() override; 47 void VerifyContexts() override;
47 void DeleteCachedResources() override; 48 void DeleteCachedResources() override;
48 bool DestroyedOnMainThread() override; 49 bool DestroyedOnMainThread() override;
49 void SetLostContextCallback( 50 void SetLostContextCallback(
50 const LostContextCallback& lost_context_callback) override; 51 const LostContextCallback& lost_context_callback) override;
(...skipping 28 matching lines...) Expand all
79 base::Lock main_thread_lock_; 80 base::Lock main_thread_lock_;
80 bool destroyed_; 81 bool destroyed_;
81 82
82 class LostContextCallbackProxy; 83 class LostContextCallbackProxy;
83 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; 84 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
84 }; 85 };
85 86
86 } // namespace content 87 } // namespace content
87 88
88 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER 89 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698