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

Unified Diff: android_webview/browser/aw_render_thread_context_provider.cc

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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 f3b1915f468e33d13468f058a67b5329a7ce0e50..7385f73bd1ece7a54454ecf3e0f24e8b75808d1f 100644
--- a/android_webview/browser/aw_render_thread_context_provider.cc
+++ b/android_webview/browser/aw_render_thread_context_provider.cc
@@ -22,13 +22,13 @@ namespace android_webview {
// static
scoped_refptr<AwRenderThreadContextProvider>
AwRenderThreadContextProvider::Create(
- scoped_refptr<gfx::GLSurface> surface,
+ scoped_refptr<gl::GLSurface> surface,
scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
return new AwRenderThreadContextProvider(surface, service);
}
AwRenderThreadContextProvider::AwRenderThreadContextProvider(
- scoped_refptr<gfx::GLSurface> surface,
+ scoped_refptr<gl::GLSurface> surface,
scoped_refptr<gpu::InProcessCommandBuffer::Service> service) {
DCHECK(main_thread_checker_.CalledOnValidThread());
@@ -63,7 +63,7 @@ AwRenderThreadContextProvider::AwRenderThreadContextProvider(
context_.reset(gpu::GLInProcessContext::Create(
service, surface, surface->IsOffscreen(), gfx::kNullAcceleratedWidget,
surface->GetSize(), nullptr /* share_context */, attributes,
- gfx::PreferDiscreteGpu, limits, nullptr, nullptr));
+ gl::PreferDiscreteGpu, limits, nullptr, nullptr));
context_->GetImplementation()->SetLostContextCallback(base::Bind(
&AwRenderThreadContextProvider::OnLostContext, base::Unretained(this)));
« no previous file with comments | « android_webview/browser/aw_render_thread_context_provider.h ('k') | android_webview/browser/scoped_app_gl_state_restore.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698