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

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

Issue 132163004: Remove WebGraphicsContext3D getter from cc::ContextProvider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
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 26 matching lines...) Expand all
37 void set_leak_on_destroy() { 37 void set_leak_on_destroy() {
38 base::AutoLock lock(main_thread_lock_); 38 base::AutoLock lock(main_thread_lock_);
39 leak_on_destroy_ = true; 39 leak_on_destroy_ = true;
40 } 40 }
41 41
42 // ContextProviderWebContext implementation. 42 // ContextProviderWebContext implementation.
43 virtual WebGraphicsContext3DCommandBufferImpl* WebContext3D() OVERRIDE; 43 virtual WebGraphicsContext3DCommandBufferImpl* WebContext3D() OVERRIDE;
44 44
45 // cc::ContextProvider implementation. 45 // cc::ContextProvider implementation.
46 virtual bool BindToCurrentThread() OVERRIDE; 46 virtual bool BindToCurrentThread() OVERRIDE;
47 virtual blink::WebGraphicsContext3D* Context3d() OVERRIDE;
48 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE; 47 virtual gpu::gles2::GLES2Interface* ContextGL() OVERRIDE;
49 virtual gpu::ContextSupport* ContextSupport() OVERRIDE; 48 virtual gpu::ContextSupport* ContextSupport() OVERRIDE;
50 virtual class GrContext* GrContext() OVERRIDE; 49 virtual class GrContext* GrContext() OVERRIDE;
51 virtual void MakeGrContextCurrent() OVERRIDE; 50 virtual void MakeGrContextCurrent() OVERRIDE;
52 virtual Capabilities ContextCapabilities() OVERRIDE; 51 virtual Capabilities ContextCapabilities() OVERRIDE;
53 virtual bool IsContextLost() OVERRIDE; 52 virtual bool IsContextLost() OVERRIDE;
54 virtual void VerifyContexts() OVERRIDE; 53 virtual void VerifyContexts() OVERRIDE;
55 virtual bool DestroyedOnMainThread() OVERRIDE; 54 virtual bool DestroyedOnMainThread() OVERRIDE;
56 virtual void SetLostContextCallback( 55 virtual void SetLostContextCallback(
57 const LostContextCallback& lost_context_callback) OVERRIDE; 56 const LostContextCallback& lost_context_callback) OVERRIDE;
(...skipping 29 matching lines...) Expand all
87 bool leak_on_destroy_; 86 bool leak_on_destroy_;
88 bool destroyed_; 87 bool destroyed_;
89 88
90 class LostContextCallbackProxy; 89 class LostContextCallbackProxy;
91 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_; 90 scoped_ptr<LostContextCallbackProxy> lost_context_callback_proxy_;
92 }; 91 };
93 92
94 } // namespace content 93 } // namespace content
95 94
96 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER 95 #endif // CONTENT_COMMON_GPU_CLIENT_CONTEXT_PROVIDER_COMMAND_BUFFER
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698