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

Unified Diff: content/common/gpu/media/rendering_helper.cc

Issue 1420503011: GLES2CmdDecoder should resize GLSurface using GLSurface::Resize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/common/gpu/media/rendering_helper.cc
diff --git a/content/common/gpu/media/rendering_helper.cc b/content/common/gpu/media/rendering_helper.cc
index e6d124ba7bf721668efc50df993689ec6479a293..6358de98950f28a7eb6201f4b43a808b22f0fb98 100644
--- a/content/common/gpu/media/rendering_helper.cc
+++ b/content/common/gpu/media/rendering_helper.cc
@@ -339,7 +339,7 @@ void RenderingHelper::Initialize(const RenderingHelperParams& params,
gl_surface_ = gfx::GLSurface::CreateViewGLSurface(window_);
#if defined(USE_OZONE)
- gl_surface_->Resize(platform_window_delegate_->GetSize());
+ gl_surface_->Resize(platform_window_delegate_->GetSize(), 1.f);
#endif // defined(USE_OZONE)
screen_size_ = gl_surface_->GetSize();
« no previous file with comments | « content/common/gpu/image_transport_surface_overlay_mac.mm ('k') | gpu/command_buffer/service/gl_surface_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698