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

Unified Diff: gpu/command_buffer/tests/gl_manager.cc

Issue 1920163005: Split //ui/gl into //ui/gl + //ui/gi/init. (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/in_process_command_buffer.cc ('k') | gpu/command_buffer/tests/gl_tests_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/tests/gl_manager.cc
diff --git a/gpu/command_buffer/tests/gl_manager.cc b/gpu/command_buffer/tests/gl_manager.cc
index a52e20984c9d872f7ac49cbea271b7dc00dced8d..5ff6c8b4d65de2a87ec67efc43f957d1fcc6b849 100644
--- a/gpu/command_buffer/tests/gl_manager.cc
+++ b/gpu/command_buffer/tests/gl_manager.cc
@@ -43,6 +43,7 @@
#include "ui/gl/gl_image_ref_counted_memory.h"
#include "ui/gl/gl_share_group.h"
#include "ui/gl/gl_surface.h"
+#include "ui/gl/init/gl_factory.h"
#if defined(OS_MACOSX)
#include "ui/gfx/mac/io_surface.h"
@@ -312,7 +313,7 @@ void GLManager::InitializeWithCommandLine(
decoder_->set_engine(executor_.get());
- surface_ = gfx::GLSurface::CreateOffscreenGLSurface(gfx::Size());
+ surface_ = gl::init::CreateOffscreenGLSurface(gfx::Size());
ASSERT_TRUE(surface_.get() != NULL) << "could not create offscreen surface";
if (base_context_) {
@@ -327,9 +328,8 @@ void GLManager::InitializeWithCommandLine(
ASSERT_TRUE(context_->Initialize(
surface_.get(), gfx::PreferIntegratedGpu));
} else {
- context_ = gfx::GLContext::CreateGLContext(share_group_.get(),
- surface_.get(),
- gpu_preference);
+ context_ = gl::init::CreateGLContext(share_group_.get(), surface_.get(),
+ gpu_preference);
}
}
ASSERT_TRUE(context_.get() != NULL) << "could not create GL context";
@@ -392,12 +392,11 @@ void GLManager::SetupBaseContext() {
new gfx::GLShareGroup);
gfx::Size size(4, 4);
base_surface_ = new scoped_refptr<gfx::GLSurface>(
- gfx::GLSurface::CreateOffscreenGLSurface(size));
+ gl::init::CreateOffscreenGLSurface(size));
gfx::GpuPreference gpu_preference(gfx::PreferDiscreteGpu);
- base_context_ = new scoped_refptr<gfx::GLContext>(
- gfx::GLContext::CreateGLContext(base_share_group_->get(),
- base_surface_->get(),
- gpu_preference));
+ base_context_ =
+ new scoped_refptr<gfx::GLContext>(gl::init::CreateGLContext(
+ base_share_group_->get(), base_surface_->get(), gpu_preference));
#endif
}
++use_count_;
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.cc ('k') | gpu/command_buffer/tests/gl_tests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698