Skip to content

Commit

Permalink
Revert "account for pixel scale when checking against existing buffer…
Browse files Browse the repository at this point in the history
… storage size (flutter#4103)" (flutter#4133)

This reverts commit 2d530da 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
  • Loading branch information
aam authored Sep 21, 2017
1 parent 9d98d88 commit 0a6e415
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions shell/platform/darwin/ios/ios_gl_context.mm
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,9 @@

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.
Expand Down

0 comments on commit 0a6e415

Please sign in to comment.