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

Unified Diff: gpu/command_buffer/service/gpu_service_test.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/command_buffer/service/gpu_service_test.h ('k') | gpu/command_buffer/service/gpu_tracer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_service_test.cc
diff --git a/gpu/command_buffer/service/gpu_service_test.cc b/gpu/command_buffer/service/gpu_service_test.cc
index 4db0019230a34d11807faafe2574abccee3b59aa..c671cd7a86bd4059b2183d05ba8580c15caa19d8 100644
--- a/gpu/command_buffer/service/gpu_service_test.cc
+++ b/gpu/command_buffer/service/gpu_service_test.cc
@@ -26,17 +26,17 @@ void GpuServiceTest::SetUpWithGLVersion(const char* gl_version,
const char* gl_extensions) {
testing::Test::SetUp();
- gfx::SetGLGetProcAddressProc(gfx::MockGLInterface::GetGLProcAddress);
- gfx::GLSurfaceTestSupport::InitializeOneOffWithMockBindings();
- gl_.reset(new ::testing::StrictMock< ::gfx::MockGLInterface>());
- ::gfx::MockGLInterface::SetGLInterface(gl_.get());
+ gl::SetGLGetProcAddressProc(gl::MockGLInterface::GetGLProcAddress);
+ gl::GLSurfaceTestSupport::InitializeOneOffWithMockBindings();
+ gl_.reset(new ::testing::StrictMock<::gl::MockGLInterface>());
+ ::gl::MockGLInterface::SetGLInterface(gl_.get());
- context_ = new gfx::GLContextStubWithExtensions;
+ context_ = new gl::GLContextStubWithExtensions;
context_->AddExtensionsString(gl_extensions);
context_->SetGLVersionString(gl_version);
- surface_ = new gfx::GLSurfaceStub;
+ surface_ = new gl::GLSurfaceStub;
context_->MakeCurrent(surface_.get());
- gfx::GLSurfaceTestSupport::InitializeDynamicMockBindings(context_.get());
+ gl::GLSurfaceTestSupport::InitializeDynamicMockBindings(context_.get());
ran_setup_ = true;
}
@@ -48,19 +48,19 @@ void GpuServiceTest::TearDown() {
DCHECK(ran_setup_);
context_ = nullptr;
surface_ = nullptr;
- ::gfx::MockGLInterface::SetGLInterface(NULL);
+ ::gl::MockGLInterface::SetGLInterface(NULL);
gl_.reset();
- gfx::ClearGLBindings();
+ gl::ClearGLBindings();
ran_teardown_ = true;
testing::Test::TearDown();
}
-gfx::GLContext* GpuServiceTest::GetGLContext() {
+gl::GLContext* GpuServiceTest::GetGLContext() {
return context_.get();
}
-gfx::GLSurface* GpuServiceTest::GetGLSurface() {
+gl::GLSurface* GpuServiceTest::GetGLSurface() {
return surface_.get();
}
« no previous file with comments | « gpu/command_buffer/service/gpu_service_test.h ('k') | gpu/command_buffer/service/gpu_tracer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698