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

Unified Diff: ui/ozone/demo/gl_renderer.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: Change to //ui/gl/init 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: ui/ozone/demo/gl_renderer.cc
diff --git a/ui/ozone/demo/gl_renderer.cc b/ui/ozone/demo/gl_renderer.cc
index 887228ca4db78db87ccbefc62ebf729e8580d811..d37de309f95408a2196e5e626351ebe167b5d190 100644
--- a/ui/ozone/demo/gl_renderer.cc
+++ b/ui/ozone/demo/gl_renderer.cc
@@ -10,6 +10,7 @@
#include "ui/gl/gl_bindings.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_surface.h"
+#include "ui/gl/init/gl_factory.h"
namespace ui {
@@ -22,8 +23,8 @@ GlRenderer::~GlRenderer() {
}
bool GlRenderer::Initialize() {
- context_ = gfx::GLContext::CreateGLContext(NULL, surface_.get(),
- gfx::PreferIntegratedGpu);
+ context_ = gl::init::CreateGLContext(nullptr, surface_.get(),
+ gfx::PreferIntegratedGpu);
if (!context_.get()) {
LOG(ERROR) << "Failed to create GL context";
return false;

Powered by Google App Engine
This is Rietveld 408576698