| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |