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

Side by Side Diff: content/renderer/render_thread_impl_browsertest.cc

Issue 2389193004: Always use ChannelMojo for content child processes. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 cmd->AppendSwitchASCII( 203 cmd->AppendSwitchASCII(
204 switches::kContentImageTextureTarget, 204 switches::kContentImageTextureTarget,
205 cc::BufferToTextureTargetMapToString( 205 cc::BufferToTextureTargetMapToString(
206 cc::DefaultBufferToTextureTargetMapForTesting())); 206 cc::DefaultBufferToTextureTargetMapForTesting()));
207 207
208 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler = 208 std::unique_ptr<blink::scheduler::RendererScheduler> renderer_scheduler =
209 blink::scheduler::RendererScheduler::Create(); 209 blink::scheduler::RendererScheduler::Create();
210 scoped_refptr<base::SingleThreadTaskRunner> test_task_counter( 210 scoped_refptr<base::SingleThreadTaskRunner> test_task_counter(
211 test_task_counter_.get()); 211 test_task_counter_.get());
212 thread_ = new RenderThreadImplForTest( 212 thread_ = new RenderThreadImplForTest(
213 InProcessChildThreadParams("", io_task_runner, 213 InProcessChildThreadParams(io_task_runner,
214 child_connection_->service_token()), 214 child_connection_->service_token()),
215 std::move(renderer_scheduler), test_task_counter); 215 std::move(renderer_scheduler), test_task_counter);
216 cmd->InitFromArgv(old_argv); 216 cmd->InitFromArgv(old_argv);
217 217
218 test_msg_filter_ = make_scoped_refptr( 218 test_msg_filter_ = make_scoped_refptr(
219 new QuitOnTestMsgFilter(base::MessageLoop::current())); 219 new QuitOnTestMsgFilter(base::MessageLoop::current()));
220 thread_->AddFilter(test_msg_filter_.get()); 220 thread_->AddFilter(test_msg_filter_.get());
221 } 221 }
222 222
223 IPC::Sender* sender() { return channel_.get(); } 223 IPC::Sender* sender() { return channel_.get(); }
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // These formats are guaranteed to work on all platforms. 373 // These formats are guaranteed to work on all platforms.
374 ::testing::Values(gfx::BufferFormat::R_8, 374 ::testing::Values(gfx::BufferFormat::R_8,
375 gfx::BufferFormat::BGR_565, 375 gfx::BufferFormat::BGR_565,
376 gfx::BufferFormat::RGBA_4444, 376 gfx::BufferFormat::RGBA_4444,
377 gfx::BufferFormat::RGBA_8888, 377 gfx::BufferFormat::RGBA_8888,
378 gfx::BufferFormat::BGRA_8888, 378 gfx::BufferFormat::BGRA_8888,
379 gfx::BufferFormat::YVU_420))); 379 gfx::BufferFormat::YVU_420)));
380 380
381 } // namespace 381 } // namespace
382 } // namespace content 382 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_thread_impl.cc ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698