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

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

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make CompositorFrameMetadata movable Created 4 years, 6 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
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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 DCHECK(color_profile->empty()); 193 DCHECK(color_profile->empty());
194 return false; 194 return false;
195 } 195 }
196 196
197 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() { 197 gfx::Rect TestRenderWidgetHostView::GetBoundsInRootWindow() {
198 return gfx::Rect(); 198 return gfx::Rect();
199 } 199 }
200 200
201 void TestRenderWidgetHostView::OnSwapCompositorFrame( 201 void TestRenderWidgetHostView::OnSwapCompositorFrame(
202 uint32_t output_surface_id, 202 uint32_t output_surface_id,
203 std::unique_ptr<cc::CompositorFrame> frame) { 203 cc::CompositorFrame frame) {
204 did_swap_compositor_frame_ = true; 204 did_swap_compositor_frame_ = true;
205 } 205 }
206 206
207 bool TestRenderWidgetHostView::LockMouse() { 207 bool TestRenderWidgetHostView::LockMouse() {
208 return false; 208 return false;
209 } 209 }
210 210
211 void TestRenderWidgetHostView::UnlockMouse() { 211 void TestRenderWidgetHostView::UnlockMouse() {
212 } 212 }
213 213
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 334
335 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 335 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
336 return contents()->GetMainFrame(); 336 return contents()->GetMainFrame();
337 } 337 }
338 338
339 TestWebContents* RenderViewHostImplTestHarness::contents() { 339 TestWebContents* RenderViewHostImplTestHarness::contents() {
340 return static_cast<TestWebContents*>(web_contents()); 340 return static_cast<TestWebContents*>(web_contents());
341 } 341 }
342 342
343 } // namespace content 343 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698