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

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

Issue 11031055: Introduce PlatformBitmap, which is a minimal helper class that wraps an SkBitmap (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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/dom_storage/dom_storage_context_impl.h" 6 #include "content/browser/dom_storage/dom_storage_context_impl.h"
7 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 7 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
8 #include "content/browser/renderer_host/test_render_view_host.h" 8 #include "content/browser/renderer_host/test_render_view_host.h"
9 #include "content/browser/site_instance_impl.h" 9 #include "content/browser/site_instance_impl.h"
10 #include "content/browser/web_contents/navigation_controller_impl.h" 10 #include "content/browser/web_contents/navigation_controller_impl.h"
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 112
113 BackingStore* TestRenderWidgetHostView::AllocBackingStore( 113 BackingStore* TestRenderWidgetHostView::AllocBackingStore(
114 const gfx::Size& size) { 114 const gfx::Size& size) {
115 return new TestBackingStore(rwh_, size); 115 return new TestBackingStore(rwh_, size);
116 } 116 }
117 117
118 void TestRenderWidgetHostView::CopyFromCompositingSurface( 118 void TestRenderWidgetHostView::CopyFromCompositingSurface(
119 const gfx::Rect& src_subrect, 119 const gfx::Rect& src_subrect,
120 const gfx::Size& dst_size, 120 const gfx::Size& dst_size,
121 const base::Callback<void(bool)>& callback, 121 const base::Callback<void(bool)>& callback,
122 skia::PlatformCanvas* output) { 122 skia::PlatformBitmap* output) {
123 callback.Run(false); 123 callback.Run(false);
124 } 124 }
125 125
126 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() { 126 void TestRenderWidgetHostView::OnAcceleratedCompositingStateChange() {
127 } 127 }
128 128
129 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped( 129 void TestRenderWidgetHostView::AcceleratedSurfaceBuffersSwapped(
130 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, 130 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params,
131 int gpu_host_id) { 131 int gpu_host_id) {
132 } 132 }
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 380
381 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() { 381 TestRenderViewHost* RenderViewHostImplTestHarness::active_test_rvh() {
382 return static_cast<TestRenderViewHost*>(active_rvh()); 382 return static_cast<TestRenderViewHost*>(active_rvh());
383 } 383 }
384 384
385 TestWebContents* RenderViewHostImplTestHarness::contents() { 385 TestWebContents* RenderViewHostImplTestHarness::contents() {
386 return static_cast<TestWebContents*>(web_contents()); 386 return static_cast<TestWebContents*>(web_contents());
387 } 387 }
388 388
389 } // namespace content 389 } // 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