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

Side by Side Diff: blimp/client/app/android/blimp_compositor_manager_android.cc

Issue 1925863003: Changed Blimp client to start with white screen before drawing contents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "blimp/client/app/android/blimp_compositor_manager_android.h" 5 #include "blimp/client/app/android/blimp_compositor_manager_android.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // just estimates the values above using tile counts. 86 // just estimates the values above using tile counts.
87 int numTiles = (portrait_width_ * landscape_width_) / (256 * 256); 87 int numTiles = (portrait_width_ * landscape_width_) / (256 * 256);
88 if (numTiles > 16) 88 if (numTiles > 16)
89 default_tile_size = 384; 89 default_tile_size = 384;
90 if (numTiles >= 40) 90 if (numTiles >= 40)
91 default_tile_size = 512; 91 default_tile_size = 512;
92 } 92 }
93 settings->default_tile_size.SetSize(default_tile_size, default_tile_size); 93 settings->default_tile_size.SetSize(default_tile_size, default_tile_size);
94 } 94 }
95 95
96 void BlimpCompositorManagerAndroid::DidCompleteSwapBuffers() {
97 blimp_view_->OnSwapBuffersCompleted();
98 }
99
96 } // namespace client 100 } // namespace client
97 } // namespace blimp 101 } // namespace blimp
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698