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

Unified Diff: android_webview/browser/aw_render_thread_context_provider.cc

Issue 1900993002: Move SharedMemoryLimits out of WebGraphicsContext3DCommandBufferImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@limits
Patch Set: move-limits: types 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/aw_render_thread_context_provider.cc
diff --git a/android_webview/browser/aw_render_thread_context_provider.cc b/android_webview/browser/aw_render_thread_context_provider.cc
index 18c7087096045758bb697c19b8a9763d8eed64c9..93251fa6604a923d66b63f99a0db2a4858fd6abc 100644
--- a/android_webview/browser/aw_render_thread_context_provider.cc
+++ b/android_webview/browser/aw_render_thread_context_provider.cc
@@ -58,8 +58,6 @@ AwRenderThreadContextProvider::AwRenderThreadContextProvider(
context_->GetImplementation()->SetLostContextCallback(base::Bind(
&AwRenderThreadContextProvider::OnLostContext, base::Unretained(this)));
-
- capabilities_.gpu = context_->GetImplementation()->capabilities();
}
AwRenderThreadContextProvider::~AwRenderThreadContextProvider() {
@@ -75,11 +73,9 @@ bool AwRenderThreadContextProvider::BindToCurrentThread() {
return true;
}
-cc::ContextProvider::Capabilities
-AwRenderThreadContextProvider::ContextCapabilities() {
+gpu::Capabilities AwRenderThreadContextProvider::ContextCapabilities() {
DCHECK(main_thread_checker_.CalledOnValidThread());
-
- return capabilities_;
+ return context_->GetImplementation()->capabilities();
}
gpu::gles2::GLES2Interface* AwRenderThreadContextProvider::ContextGL() {
« no previous file with comments | « android_webview/browser/aw_render_thread_context_provider.h ('k') | blimp/client/feature/compositor/blimp_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698