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

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

Issue 10815070: Support copying a partial rectangle region from the compositing surface on Aura and GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 8 years, 5 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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const { 93 gfx::Rect TestRenderWidgetHostView::GetViewBounds() const {
94 return gfx::Rect(); 94 return gfx::Rect();
95 } 95 }
96 96
97 BackingStore* TestRenderWidgetHostView::AllocBackingStore( 97 BackingStore* TestRenderWidgetHostView::AllocBackingStore(
98 const gfx::Size& size) { 98 const gfx::Size& size) {
99 return new TestBackingStore(rwh_, size); 99 return new TestBackingStore(rwh_, size);
100 } 100 }
101 101
102 void TestRenderWidgetHostView::CopyFromCompositingSurface( 102 void TestRenderWidgetHostView::CopyFromCompositingSurface(
103 const gfx::Size& size, 103 const gfx::Rect& src_subrect,
104 const gfx::Size& dst_size,
104 const base::Callback<void(bool)>& callback, 105 const base::Callback<void(bool)>& callback,
105 skia::PlatformCanvas* output) { 106 skia::PlatformCanvas* output) {
106 callback.Run(false); 107 callback.Run(false);
107 } 108 }
108 109
109 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { 110 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() {
110 } 111 }
111 112
112 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( 113 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped(
113 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 114 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 337
337 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 338 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
338 return static_cast<TestRenderViewHost*>(active_rvh()); 339 return static_cast<TestRenderViewHost*>(active_rvh());
339 } 340 }
340 341
341 TestWebContents* RenderViewHostImplTestHarness::contents() { 342 TestWebContents* RenderViewHostImplTestHarness::contents() {
342 return static_cast<TestWebContents*>(web_contents()); 343 return static_cast<TestWebContents*>(web_contents());
343 } 344 }
344 345
345 } // namespace content 346 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/test_render_view_host.h ('k') | content/common/gpu/client/gl_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698