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

Unified Diff: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc

Issue 15688002: Part 1/3 (compositor) of adding with device scale factor to transport surfaces (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Android build 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
Index: content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
diff --git a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
index b5ee5c45a585d047be9afca83935a8234e938b2f..33f6ea1e1148ab637a8ed4aff27769feaa6b7f82 100644
--- a/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
+++ b/content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc
@@ -567,6 +567,11 @@ void WebGraphicsContext3DCommandBufferImpl::postSubBufferCHROMIUM(
}
void WebGraphicsContext3DCommandBufferImpl::reshape(int width, int height) {
+ reshapeWithScaleFactor(width, height, 1.f);
+}
+
+void WebGraphicsContext3DCommandBufferImpl::reshapeWithScaleFactor(
+ int width, int height, float scale_factor) {
cached_width_ = width;
cached_height_ = height;

Powered by Google App Engine
This is Rietveld 408576698