| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "android_webview/browser/parent_compositor_draw_constraints.h" | 5 #include "android_webview/browser/parent_compositor_draw_constraints.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/child_frame.h" | 7 #include "android_webview/browser/child_frame.h" |
| 8 | 8 |
| 9 namespace android_webview { | 9 namespace android_webview { |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 } | 28 } |
| 29 | 29 |
| 30 // Viewport for tile priority does not depend on surface rect in this case. | 30 // Viewport for tile priority does not depend on surface rect in this case. |
| 31 if (frame.offscreen_pre_raster || is_layer) | 31 if (frame.offscreen_pre_raster || is_layer) |
| 32 return false; | 32 return false; |
| 33 | 33 |
| 34 // Workaround for corner case. See crbug.com/417479. | 34 // Workaround for corner case. See crbug.com/417479. |
| 35 return frame.viewport_rect_for_tile_priority_empty && !surface_rect_empty; | 35 return frame.viewport_rect_for_tile_priority_empty && !surface_rect_empty; |
| 36 } | 36 } |
| 37 | 37 |
| 38 } // namespace webview | 38 } // namespace android_webview |
| OLD | NEW |