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

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

Issue 133363004: content_gl_tests should skip RGB565 test if the prior detection of format support fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Initialize variables before operating getintegerv Created 6 years, 11 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 "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h" 8 #include "content/browser/dom_storage/dom_storage_context_wrapper.h"
9 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 9 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
10 #include "content/browser/site_instance_impl.h" 10 #include "content/browser/site_instance_impl.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 } 107 }
108 108
109 BackingStore* TestRenderWidgetHostView::AllocBackingStore( 109 BackingStore* TestRenderWidgetHostView::AllocBackingStore(
110 const gfx::Size& size) { 110 const gfx::Size& size) {
111 return new TestBackingStore(rwh_, size); 111 return new TestBackingStore(rwh_, size);
112 } 112 }
113 113
114 void TestRenderWidgetHostView::CopyFromCompositingSurface( 114 void TestRenderWidgetHostView::CopyFromCompositingSurface(
115 const gfx::Rect& src_subrect, 115 const gfx::Rect& src_subrect,
116 const gfx::Size& dst_size, 116 const gfx::Size& dst_size,
117 const base::Callback<void(bool, const SkBitmap&)>& callback) { 117 const base::Callback<void(bool, const SkBitmap&)>& callback,
118 bool readback_config_rgb565) {
118 callback.Run(false, SkBitmap()); 119 callback.Run(false, SkBitmap());
119 } 120 }
120 121
121 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame( 122 void TestRenderWidgetHostView::CopyFromCompositingSurfaceToVideoFrame(
122 const gfx::Rect& src_subrect, 123 const gfx::Rect& src_subrect,
123 const scoped_refptr<media::VideoFrame>& target, 124 const scoped_refptr<media::VideoFrame>& target,
124 const base::Callback<void(bool)>& callback) { 125 const base::Callback<void(bool)>& callback) {
125 callback.Run(false); 126 callback.Run(false);
126 } 127 }
127 128
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
426 427
427 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() { 428 TestRenderFrameHost* RenderViewHostImplTestHarness::main_test_rfh() {
428 return static_cast<TestRenderFrameHost*>(main_rfh()); 429 return static_cast<TestRenderFrameHost*>(main_rfh());
429 } 430 }
430 431
431 TestWebContents* RenderViewHostImplTestHarness::contents() { 432 TestWebContents* RenderViewHostImplTestHarness::contents() {
432 return static_cast<TestWebContents*>(web_contents()); 433 return static_cast<TestWebContents*>(web_contents());
433 } 434 }
434 435
435 } // namespace content 436 } // 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