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

Side by Side Diff: content/browser/renderer_host/test_render_view_host.cc

Issue 10352016: Consolidate RenderWidgetHost::CopyFromBackingStore and RenderWidgetHost::AsyncCopyFromBackingStore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 7 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 | Annotate | Revision Log
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/browser/renderer_host/test_backing_store.h" 5 #include "content/browser/renderer_host/test_backing_store.h"
6 #include "content/browser/renderer_host/test_render_view_host.h" 6 #include "content/browser/renderer_host/test_render_view_host.h"
7 #include "content/browser/site_instance_impl.h" 7 #include "content/browser/site_instance_impl.h"
8 #include "content/browser/web_contents/navigation_controller_impl.h" 8 #include "content/browser/web_contents/navigation_controller_impl.h"
9 #include "content/browser/web_contents/test_web_contents.h" 9 #include "content/browser/web_contents/test_web_contents.h"
10 #include "content/common/view_messages.h" 10 #include "content/common/view_messages.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 87
88 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { 88 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const {
89 return gfx::Rect(); 89 return gfx::Rect();
90 } 90 }
91 91
92 BackingStore* TestRenderWidgetHostView::AllocBackingStore( 92 BackingStore* TestRenderWidgetHostView::AllocBackingStore(
93 const gfx::Size& size) { 93 const gfx::Size& size) {
94 return new TestBackingStore(rwh_, size); 94 return new TestBackingStore(rwh_, size);
95 } 95 }
96 96
97 bool TestRenderWidgetHostView::CopyFromCompositingSurface( 97 void TestRenderWidgetHostView::CopyFromCompositingSurface(
98 const gfx::Size& size,
99 skia::PlatformCanvas* output) {
100 return false;
101 }
102
103 void TestRenderWidgetHostView::AsyncCopyFromCompositingSurface(
104 const gfx::Size& size, 98 const gfx::Size& size,
105 skia::PlatformCanvas* output, 99 skia::PlatformCanvas* output,
106 base::Callback<void(bool)> callback) { 100 base::Callback<void(bool)> callback) {
107 callback.Run(false); 101 callback.Run(false);
108 } 102 }
109 103
110 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { 104 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() {
111 } 105 }
112 106
113 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( 107 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped(
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 320
327 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 321 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
328 return static_cast<TestRenderViewHost*>(active_rvh()); 322 return static_cast<TestRenderViewHost*>(active_rvh());
329 } 323 }
330 324
331 TestWebContents* RenderViewHostImplTestHarness::contents() { 325 TestWebContents* RenderViewHostImplTestHarness::contents() {
332 return static_cast<TestWebContents*>(web_contents()); 326 return static_cast<TestWebContents*>(web_contents());
333 } 327 }
334 328
335 } // namespace content 329 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/port/browser/render_widget_host_view_port.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698