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

Unified Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc

Issue 15685003: Part 2/3 (GL) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-resolve against head Created 7 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 | « ppapi/shared_impl/ppb_graphics_3d_shared.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
diff --git a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
index 64dd27332e176994c646daa7063f0f3ceb75fac1..5235e2209c65723107c46b4dc117d46e6e740527 100644
--- a/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
+++ b/webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc
@@ -158,7 +158,7 @@ class GLInProcessContext {
::gpu::gles2::GLES2Decoder* GetDecoder();
- void OnResizeView(gfx::Size size);
+ void OnResizeView(gfx::Size size, float scale_factor);
private:
explicit GLInProcessContext(bool share_resources);
@@ -489,7 +489,7 @@ CommandBufferService* GLInProcessContext::GetCommandBufferService() {
return decoder_.get();
}
-void GLInProcessContext::OnResizeView(gfx::Size size) {
+void GLInProcessContext::OnResizeView(gfx::Size size, float scale_factor) {
DCHECK(!surface_->IsOffscreen());
surface_->Resize(size);
}
@@ -972,7 +972,7 @@ void WebGraphicsContext3DInProcessCommandBufferImpl::reshapeWithScaleFactor(
// TODO(gmam): See if we can comment this in.
// ClearContext();
- gl_->ResizeCHROMIUM(width, height);
+ gl_->ResizeCHROMIUM(width, height, scale_factor);
}
WebGLId WebGraphicsContext3DInProcessCommandBufferImpl::createCompositorTexture(
« no previous file with comments | « ppapi/shared_impl/ppb_graphics_3d_shared.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698