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

Side by Side Diff: webkit/common/gpu/context_provider_in_process.cc

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
« no previous file with comments | « webkit/common/gpu/context_provider_in_process.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webkit/common/gpu/context_provider_in_process.h" 5 #include "webkit/common/gpu/context_provider_in_process.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback_helpers.h" 10 #include "base/callback_helpers.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 capabilities_.gpu = context3d_->GetImplementation()->capabilities(); 110 capabilities_.gpu = context3d_->GetImplementation()->capabilities();
111 } 111 }
112 112
113 cc::ContextProvider::Capabilities 113 cc::ContextProvider::Capabilities
114 ContextProviderInProcess::ContextCapabilities() { 114 ContextProviderInProcess::ContextCapabilities() {
115 DCHECK(lost_context_callback_proxy_); // Is bound to thread. 115 DCHECK(lost_context_callback_proxy_); // Is bound to thread.
116 DCHECK(context_thread_checker_.CalledOnValidThread()); 116 DCHECK(context_thread_checker_.CalledOnValidThread());
117 return capabilities_; 117 return capabilities_;
118 } 118 }
119 119
120 blink::WebGraphicsContext3D* ContextProviderInProcess::Context3d() {
121 DCHECK(lost_context_callback_proxy_); // Is bound to thread.
122 DCHECK(context_thread_checker_.CalledOnValidThread());
123
124 return context3d_.get();
125 }
126
127 ::gpu::gles2::GLES2Interface* ContextProviderInProcess::ContextGL() { 120 ::gpu::gles2::GLES2Interface* ContextProviderInProcess::ContextGL() {
128 DCHECK(context3d_); 121 DCHECK(context3d_);
129 DCHECK(lost_context_callback_proxy_); // Is bound to thread. 122 DCHECK(lost_context_callback_proxy_); // Is bound to thread.
130 DCHECK(context_thread_checker_.CalledOnValidThread()); 123 DCHECK(context_thread_checker_.CalledOnValidThread());
131 124
132 return context3d_->GetGLInterface(); 125 return context3d_->GetGLInterface();
133 } 126 }
134 127
135 ::gpu::ContextSupport* ContextProviderInProcess::ContextSupport() { 128 ::gpu::ContextSupport* ContextProviderInProcess::ContextSupport() {
136 DCHECK(context3d_); 129 DCHECK(context3d_);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 lost_context_callback_ = lost_context_callback; 197 lost_context_callback_ = lost_context_callback;
205 } 198 }
206 199
207 void ContextProviderInProcess::SetMemoryPolicyChangedCallback( 200 void ContextProviderInProcess::SetMemoryPolicyChangedCallback(
208 const MemoryPolicyChangedCallback& memory_policy_changed_callback) { 201 const MemoryPolicyChangedCallback& memory_policy_changed_callback) {
209 // There's no memory manager for the in-process implementation. 202 // There's no memory manager for the in-process implementation.
210 } 203 }
211 204
212 } // namespace gpu 205 } // namespace gpu
213 } // namespace webkit 206 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/common/gpu/context_provider_in_process.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698