Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(174)

Side by Side Diff: content/test/test_render_view_host.cc

Issue 2774373002: Use MojoCompositorFrameSink in RendererCompositorFrameSink (Closed)
Patch Set: Rebased, dedup IPC Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/test/test_render_view_host.h" 5 #include "content/test/test_render_view_host.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 } 173 }
174 174
175 void TestRenderWidgetHostView::StopSpeaking() {} 175 void TestRenderWidgetHostView::StopSpeaking() {}
176 176
177 #endif 177 #endif
178 178
179 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { 179 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() {
180 return gfx::Rect(); 180 return gfx::Rect();
181 } 181 }
182 182
183 void TestRenderWidgetHostView::DidCreateNewRendererCompositorFrameSink() { 183 void TestRenderWidgetHostView::DidCreateNewRendererCompositorFrameSink(
184 cc::mojom::MojoCompositorFrameSinkClient* renderer_compositor_frame_sink) {
184 did_change_compositor_frame_sink_ = true; 185 did_change_compositor_frame_sink_ = true;
185 } 186 }
186 187
187 void TestRenderWidgetHostView::SubmitCompositorFrame( 188 void TestRenderWidgetHostView::SubmitCompositorFrame(
188 const cc::LocalSurfaceId& local_surface_id, 189 const cc::LocalSurfaceId& local_surface_id,
189 cc::CompositorFrame frame) { 190 cc::CompositorFrame frame) {
190 did_swap_compositor_frame_ = true; 191 did_swap_compositor_frame_ = true;
191 } 192 }
192 193
193 bool TestRenderWidgetHostView::LockMouse() { 194 bool TestRenderWidgetHostView::LockMouse() {
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 318
318 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 319 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
319 return contents()->GetMainFrame(); 320 return contents()->GetMainFrame();
320 } 321 }
321 322
322 TestWebContents* RenderViewHostImplTestHarness::contents() { 323 TestWebContents* RenderViewHostImplTestHarness::contents() {
323 return static_cast<TestWebContents*>(web_contents()); 324 return static_cast<TestWebContents*>(web_contents());
324 } 325 }
325 326
326 } // namespace content 327 } // namespace content
OLDNEW
« no previous file with comments | « content/test/test_render_view_host.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698