| 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 "android_webview/browser/browser_view_renderer.h" | 7 #include "android_webview/browser/browser_view_renderer.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "content/public/test/test_synchronous_compositor_android.h" | 9 #include "content/public/test/test_synchronous_compositor_android.h" |
| 10 | 10 |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void RenderingTest::QuitMessageLoop() { | 59 void RenderingTest::QuitMessageLoop() { |
| 60 DCHECK_EQ(base::MessageLoop::current(), message_loop_.get()); | 60 DCHECK_EQ(base::MessageLoop::current(), message_loop_.get()); |
| 61 message_loop_->QuitWhenIdle(); | 61 message_loop_->QuitWhenIdle(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool RenderingTest::RequestDrawGL(bool wait_for_completion) { | 64 bool RenderingTest::RequestDrawGL(bool wait_for_completion) { |
| 65 window_->RequestDrawGL(wait_for_completion); | 65 window_->RequestDrawGL(wait_for_completion); |
| 66 return true; | 66 return true; |
| 67 } | 67 } |
| 68 | 68 |
| 69 bool RenderingTest::WillDrawOnRT(SharedRendererState* functor) { |
| 70 return true; |
| 71 } |
| 72 |
| 69 void RenderingTest::OnNewPicture() { | 73 void RenderingTest::OnNewPicture() { |
| 70 } | 74 } |
| 71 | 75 |
| 72 void RenderingTest::PostInvalidate() { | 76 void RenderingTest::PostInvalidate() { |
| 73 window_->PostInvalidate(); | 77 window_->PostInvalidate(); |
| 74 } | 78 } |
| 75 | 79 |
| 76 void RenderingTest::DetachFunctorFromView() { | 80 void RenderingTest::DetachFunctorFromView() { |
| 77 } | 81 } |
| 78 | 82 |
| 79 gfx::Point RenderingTest::GetLocationOnScreen() { | 83 gfx::Point RenderingTest::GetLocationOnScreen() { |
| 80 return gfx::Point(); | 84 return gfx::Point(); |
| 81 } | 85 } |
| 82 | 86 |
| 83 bool RenderingTest::IsFlingActive() const { | 87 bool RenderingTest::IsFlingActive() const { |
| 84 return false; | 88 return false; |
| 85 } | 89 } |
| 86 | 90 |
| 87 } // namespace android_webview | 91 } // namespace android_webview |
| OLD | NEW |