From d539abd7c5fe5291bab81b32e6e5697c1b6681b6 Mon Sep 17 00:00:00 2001 From: Alexander Aprelev Date: Thu, 21 Sep 2017 12:45:16 -0700 Subject: [PATCH] Revert "account for pixel scale when checking against existing buffer storage size (#4103)" (flutter/engine#4133) This reverts commit 72c28f3a01bd9e6bed256edc4629705d96a7cead as it looks like a potential cause of performance benchmark regressions on https://flutter-dashboard.appspot.com/benchmarks.html: - flutter_gallery_ios__transition_perf average_frame_build_time_millis - flutter_gallery_ios__transition_perf missed_frame_build_budget_count --- .../src/flutter/shell/platform/darwin/ios/ios_gl_context.mm | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/shell/platform/darwin/ios/ios_gl_context.mm b/engine/src/flutter/shell/platform/darwin/ios/ios_gl_context.mm index 013b705561..dc018a0eb5 100644 --- a/engine/src/flutter/shell/platform/darwin/ios/ios_gl_context.mm +++ b/engine/src/flutter/shell/platform/darwin/ios/ios_gl_context.mm @@ -163,10 +163,9 @@ bool IOSGLContext::PresentRenderBuffer() const { bool IOSGLContext::UpdateStorageSizeIfNecessary() { const CGSize layer_size = [layer_.get() bounds].size; - const CGFloat contents_scale = layer_.get().contentsScale; - const GLint size_width = layer_size.width * contents_scale; - const GLint size_height = layer_size.height * contents_scale; + const GLint size_width = layer_size.width; + const GLint size_height = layer_size.height; if (size_width == storage_size_width_ && size_height == storage_size_height_) { // Nothing to since the stoage size is already consistent with the layer.