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

Unified Diff: gpu/gles2_conform_support/egl/context.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
« no previous file with comments | « gpu/gles2_conform_support/egl/context.h ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/context.cc
diff --git a/gpu/gles2_conform_support/egl/context.cc b/gpu/gles2_conform_support/egl/context.cc
index 4d9e592bbfce7a87eac33ec29fd04d1421114b00..07dc5ae28e4c51dd93df4990d482180db7d57e63 100644
--- a/gpu/gles2_conform_support/egl/context.cc
+++ b/gpu/gles2_conform_support/egl/context.cc
@@ -230,7 +230,7 @@ bool Context::CanWaitUnverifiedSyncToken(const gpu::SyncToken* sync_token) {
return false;
}
-void Context::ApplyCurrentContext(gfx::GLSurface* current_surface) {
+void Context::ApplyCurrentContext(gl::GLSurface* current_surface) {
DCHECK(HasService());
// The current_surface will be the same as
// the surface of the decoder. We can not DCHECK as there is
@@ -246,7 +246,7 @@ void Context::ApplyContextReleased() {
gles2::SetGLContext(nullptr);
}
-bool Context::CreateService(gfx::GLSurface* gl_surface) {
+bool Context::CreateService(gl::GLSurface* gl_surface) {
scoped_refptr<gpu::TransferBufferManager> transfer_buffer_manager(
new gpu::TransferBufferManager(nullptr));
transfer_buffer_manager->Initialize();
@@ -272,8 +272,8 @@ bool Context::CreateService(gfx::GLSurface* gl_surface) {
decoder->set_engine(command_executor.get());
- scoped_refptr<gfx::GLContext> gl_context(
- gl::init::CreateGLContext(nullptr, gl_surface, gfx::PreferDiscreteGpu));
+ scoped_refptr<gl::GLContext> gl_context(
+ gl::init::CreateGLContext(nullptr, gl_surface, gl::PreferDiscreteGpu));
if (!gl_context)
return false;
@@ -381,7 +381,7 @@ bool Context::IsCompatibleSurface(Surface* surface) const {
return surface_config_is_offscreen == context_config_is_offscreen;
}
-bool Context::Flush(gfx::GLSurface* gl_surface) {
+bool Context::Flush(gl::GLSurface* gl_surface) {
if (WasServiceContextLost())
return false;
if (!gl_context_->MakeCurrent(gl_surface)) {
« no previous file with comments | « gpu/gles2_conform_support/egl/context.h ('k') | gpu/gles2_conform_support/egl/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698