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

Unified Diff: content/gpu/gpu_main.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: content/gpu/gpu_main.cc
diff --git a/content/gpu/gpu_main.cc b/content/gpu/gpu_main.cc
index 33563a036cfc6fc0a354ebed72d4c94fc76af7bb..fca7fc5f5afba1aa5c314c7453756ca1cf80efa7 100644
--- a/content/gpu/gpu_main.cc
+++ b/content/gpu/gpu_main.cc
@@ -296,7 +296,7 @@ int GpuMain(const MainFunctionParams& parameters) {
// Load and initialize the GL implementation and locate the GL entry points.
bool gl_initialized =
gl_already_initialized
- ? gfx::GetGLImplementation() != gfx::kGLImplementationNone
+ ? gl::GetGLImplementation() != gl::kGLImplementationNone
: gl::init::InitializeGLOneOff();
if (gl_initialized) {
// We need to collect GL strings (VENDOR, RENDERER) for blacklisting
@@ -360,7 +360,7 @@ int GpuMain(const MainFunctionParams& parameters) {
// OSMesa is expected to run very slowly, so disable the watchdog in that
// case.
if (enable_watchdog &&
- gfx::GetGLImplementation() == gfx::kGLImplementationOSMesaGL) {
+ gl::GetGLImplementation() == gl::kGLImplementationOSMesaGL) {
watchdog_thread->Stop();
watchdog_thread = NULL;
}
@@ -530,7 +530,7 @@ bool CanAccessNvidiaDeviceFile() {
#endif
void CreateDummyGlContext() {
- scoped_refptr<gfx::GLSurface> surface(
+ scoped_refptr<gl::GLSurface> surface(
gl::init::CreateOffscreenGLSurface(gfx::Size()));
if (!surface.get()) {
DVLOG(1) << "gl::init::CreateOffscreenGLSurface failed";
@@ -539,8 +539,8 @@ void CreateDummyGlContext() {
// On Linux, this is needed to make sure /dev/nvidiactl has
// been opened and its descriptor cached.
- scoped_refptr<gfx::GLContext> context(
- gl::init::CreateGLContext(NULL, surface.get(), gfx::PreferDiscreteGpu));
+ scoped_refptr<gl::GLContext> context(
+ gl::init::CreateGLContext(NULL, surface.get(), gl::PreferDiscreteGpu));
if (!context.get()) {
DVLOG(1) << "gl::init::CreateGLContext failed";
return;
@@ -550,7 +550,7 @@ void CreateDummyGlContext() {
if (context->MakeCurrent(surface.get())) {
context->ReleaseCurrent(surface.get());
} else {
- DVLOG(1) << "gfx::GLContext::MakeCurrent failed";
+ DVLOG(1) << "gl::GLContext::MakeCurrent failed";
}
}
« no previous file with comments | « content/common/sandbox_linux/sandbox_seccomp_bpf_linux.cc ('k') | content/public/gpu/gpu_video_decode_accelerator_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698