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

Side by Side Diff: content/common/gpu/media/gpu_video_encode_accelerator.cc

Issue 1805133002: Remove content switches dependency in content/common/gpu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 9 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
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/common/gpu/media/gpu_video_encode_accelerator.h" 5 #include "content/common/gpu/media/gpu_video_encode_accelerator.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/shared_memory.h" 10 #include "base/memory/shared_memory.h"
11 #include "base/numerics/safe_math.h" 11 #include "base/numerics/safe_math.h"
12 #include "base/sys_info.h" 12 #include "base/sys_info.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "content/common/gpu/client/gpu_memory_buffer_impl.h" 14 #include "content/common/gpu/client/gpu_memory_buffer_impl.h"
15 #include "content/common/gpu/gpu_channel.h" 15 #include "content/common/gpu/gpu_channel.h"
16 #include "content/common/gpu/gpu_channel_manager.h" 16 #include "content/common/gpu/gpu_channel_manager.h"
17 #include "content/common/gpu/media/gpu_video_accelerator_util.h" 17 #include "content/common/gpu/media/gpu_video_accelerator_util.h"
18 #include "content/common/gpu/media/media_messages.h" 18 #include "content/common/gpu/media/media_messages.h"
19 #include "content/public/common/content_switches.h"
20 #include "ipc/ipc_message_macros.h" 19 #include "ipc/ipc_message_macros.h"
21 #include "media/base/bind_to_current_loop.h" 20 #include "media/base/bind_to_current_loop.h"
22 #include "media/base/limits.h" 21 #include "media/base/limits.h"
23 #include "media/base/video_frame.h" 22 #include "media/base/video_frame.h"
24 23
25 #if defined(OS_CHROMEOS) 24 #if defined(OS_CHROMEOS)
26 #if defined(USE_V4L2_CODEC) 25 #if defined(USE_V4L2_CODEC)
27 #include "content/common/gpu/media/v4l2_video_encode_accelerator.h" 26 #include "content/common/gpu/media/v4l2_video_encode_accelerator.h"
28 #endif 27 #endif
29 #if defined(ARCH_CPU_X86_FAMILY) 28 #if defined(ARCH_CPU_X86_FAMILY)
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 Send(new AcceleratedVideoEncoderHostMsg_NotifyInputDone(host_route_id_, 467 Send(new AcceleratedVideoEncoderHostMsg_NotifyInputDone(host_route_id_,
469 frame_id)); 468 frame_id));
470 // Just let |buffers| fall out of scope. 469 // Just let |buffers| fall out of scope.
471 } 470 }
472 471
473 void GpuVideoEncodeAccelerator::Send(IPC::Message* message) { 472 void GpuVideoEncodeAccelerator::Send(IPC::Message* message) {
474 stub_->channel()->Send(message); 473 stub_->channel()->Send(message);
475 } 474 }
476 475
477 } // namespace content 476 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698