| 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/test/rendering_test.h" | 5 #include "android_webview/browser/test/rendering_test.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "android_webview/browser/browser_view_renderer.h" | 9 #include "android_webview/browser/browser_view_renderer.h" |
| 10 #include "android_webview/browser/child_frame.h" | 10 #include "android_webview/browser/child_frame.h" |
| 11 #include "android_webview/browser/render_thread_manager.h" | 11 #include "android_webview/browser/render_thread_manager.h" |
| 12 #include "android_webview/common/aw_switches.h" | 12 #include "android_webview/common/aw_switches.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/location.h" | 14 #include "base/location.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/message_loop/message_loop.h" |
| 16 #include "base/threading/thread_task_runner_handle.h" | 17 #include "base/threading/thread_task_runner_handle.h" |
| 17 #include "cc/output/compositor_frame.h" | 18 #include "cc/output/compositor_frame.h" |
| 18 #include "content/public/browser/android/synchronous_compositor.h" | 19 #include "content/public/browser/android/synchronous_compositor.h" |
| 19 #include "content/public/test/test_synchronous_compositor_android.h" | 20 #include "content/public/test/test_synchronous_compositor_android.h" |
| 20 | 21 |
| 21 namespace android_webview { | 22 namespace android_webview { |
| 22 | 23 |
| 23 namespace { | 24 namespace { |
| 24 // BrowserViewRenderer subclass used for enabling tests to observe | 25 // BrowserViewRenderer subclass used for enabling tests to observe |
| 25 // OnParentDrawConstraintsUpdated. | 26 // OnParentDrawConstraintsUpdated. |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 void RenderingTest::PostInvalidate() { | 159 void RenderingTest::PostInvalidate() { |
| 159 if (window_) | 160 if (window_) |
| 160 window_->PostInvalidate(); | 161 window_->PostInvalidate(); |
| 161 } | 162 } |
| 162 | 163 |
| 163 gfx::Point RenderingTest::GetLocationOnScreen() { | 164 gfx::Point RenderingTest::GetLocationOnScreen() { |
| 164 return gfx::Point(); | 165 return gfx::Point(); |
| 165 } | 166 } |
| 166 | 167 |
| 167 } // namespace android_webview | 168 } // namespace android_webview |
| OLD | NEW |