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

Unified Diff: media/gpu/rendering_helper.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 | « media/gpu/BUILD.gn ('k') | media/media_gpu.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/rendering_helper.cc
diff --git a/media/gpu/rendering_helper.cc b/media/gpu/rendering_helper.cc
index b72dc10abc8af010e368899b5729eb96a6eee580..30b1a1edfed644f0fe6fd120ad2d2cd54a123229 100644
--- a/media/gpu/rendering_helper.cc
+++ b/media/gpu/rendering_helper.cc
@@ -25,6 +25,7 @@
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_implementation.h"
#include "ui/gl/gl_surface.h"
+#include "ui/gl/init/gl_factory.h"
#if defined(OS_WIN)
#include <windows.h>
@@ -194,7 +195,7 @@ void RenderingHelper::InitializeOneOff(base::WaitableEvent* done) {
cmd_line->AppendSwitchASCII(switches::kUseGL, gfx::kGLImplementationEGLName);
#endif
- if (!gfx::GLSurface::InitializeOneOff())
+ if (!gl::init::InitializeGLOneOff())
LOG(FATAL) << "Could not initialize GL";
done->Signal();
}
@@ -329,14 +330,14 @@ void RenderingHelper::Initialize(const RenderingHelperParams& params,
render_as_thumbnails_ = params.render_as_thumbnails;
message_loop_ = base::MessageLoop::current();
- gl_surface_ = gfx::GLSurface::CreateViewGLSurface(window_);
+ gl_surface_ = gl::init::CreateViewGLSurface(window_);
#if defined(USE_OZONE)
gl_surface_->Resize(platform_window_delegate_->GetSize(), 1.f, true);
#endif // defined(USE_OZONE)
screen_size_ = gl_surface_->GetSize();
- gl_context_ = gfx::GLContext::CreateGLContext(NULL, gl_surface_.get(),
- gfx::PreferIntegratedGpu);
+ gl_context_ = gl::init::CreateGLContext(nullptr, gl_surface_.get(),
+ gfx::PreferIntegratedGpu);
CHECK(gl_context_->MakeCurrent(gl_surface_.get()));
CHECK_GT(params.window_sizes.size(), 0U);
« no previous file with comments | « media/gpu/BUILD.gn ('k') | media/media_gpu.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698