| 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" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 frame->render_pass_list.push_back(std::move(root_pass)); | 84 frame->render_pass_list.push_back(std::move(root_pass)); |
| 85 compositor_frame->delegated_frame_data = std::move(frame); | 85 compositor_frame->delegated_frame_data = std::move(frame); |
| 86 return compositor_frame; | 86 return compositor_frame; |
| 87 } | 87 } |
| 88 | 88 |
| 89 void RenderingTest::WillOnDraw() { | 89 void RenderingTest::WillOnDraw() { |
| 90 DCHECK(compositor_); | 90 DCHECK(compositor_); |
| 91 compositor_->SetHardwareFrame(0u, ConstructEmptyFrame()); | 91 compositor_->SetHardwareFrame(0u, ConstructEmptyFrame()); |
| 92 } | 92 } |
| 93 | 93 |
| 94 bool RenderingTest::RequestDrawGL(bool wait_for_completion) { | 94 bool RenderingTest::RequestInvokeGL(bool wait_for_completion) { |
| 95 window_->RequestDrawGL(wait_for_completion); | 95 window_->RequestInvokeGL(wait_for_completion); |
| 96 return true; | 96 return true; |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool RenderingTest::WillDrawOnRT(RenderThreadManager* functor, | 99 bool RenderingTest::WillDrawOnRT(RenderThreadManager* functor, |
| 100 AwDrawGLInfo* draw_info) { | 100 AwDrawGLInfo* draw_info) { |
| 101 draw_info->width = window_->surface_size().width(); | 101 draw_info->width = window_->surface_size().width(); |
| 102 draw_info->height = window_->surface_size().height(); | 102 draw_info->height = window_->surface_size().height(); |
| 103 draw_info->is_layer = false; | 103 draw_info->is_layer = false; |
| 104 gfx::Transform transform; | 104 gfx::Transform transform; |
| 105 transform.matrix().asColMajorf(draw_info->transform); | 105 transform.matrix().asColMajorf(draw_info->transform); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 119 } | 119 } |
| 120 | 120 |
| 121 void RenderingTest::DetachFunctorFromView() { | 121 void RenderingTest::DetachFunctorFromView() { |
| 122 } | 122 } |
| 123 | 123 |
| 124 gfx::Point RenderingTest::GetLocationOnScreen() { | 124 gfx::Point RenderingTest::GetLocationOnScreen() { |
| 125 return gfx::Point(); | 125 return gfx::Point(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 } // namespace android_webview | 128 } // namespace android_webview |
| OLD | NEW |