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

Side by Side Diff: content/renderer/pepper/pepper_video_encoder_host.cc

Issue 2596283002: Include-what-you-use for ThreadTaskRunnerHandle. (Closed)
Patch Set: rebase Created 3 years, 12 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/pepper/pepper_video_encoder_host.h" 5 #include "content/renderer/pepper/pepper_video_encoder_host.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.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/threading/thread_task_runner_handle.h"
12 #include "build/build_config.h" 13 #include "build/build_config.h"
13 #include "content/common/pepper_file_util.h" 14 #include "content/common/pepper_file_util.h"
14 #include "content/public/renderer/renderer_ppapi_host.h" 15 #include "content/public/renderer/renderer_ppapi_host.h"
15 #include "content/renderer/pepper/gfx_conversion.h" 16 #include "content/renderer/pepper/gfx_conversion.h"
16 #include "content/renderer/pepper/host_globals.h" 17 #include "content/renderer/pepper/host_globals.h"
17 #include "content/renderer/pepper/video_encoder_shim.h" 18 #include "content/renderer/pepper/video_encoder_shim.h"
18 #include "content/renderer/render_thread_impl.h" 19 #include "content/renderer/render_thread_impl.h"
19 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 20 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
20 #include "gpu/ipc/client/command_buffer_proxy_impl.h" 21 #include "gpu/ipc/client/command_buffer_proxy_impl.h"
21 #include "media/base/bind_to_current_loop.h" 22 #include "media/base/bind_to_current_loop.h"
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 } 679 }
679 680
680 uint8_t* PepperVideoEncoderHost::ShmHandleToAddress(int32_t buffer_id) { 681 uint8_t* PepperVideoEncoderHost::ShmHandleToAddress(int32_t buffer_id) {
681 DCHECK(RenderThreadImpl::current()); 682 DCHECK(RenderThreadImpl::current());
682 DCHECK_GE(buffer_id, 0); 683 DCHECK_GE(buffer_id, 0);
683 DCHECK_LT(buffer_id, static_cast<int32_t>(shm_buffers_.size())); 684 DCHECK_LT(buffer_id, static_cast<int32_t>(shm_buffers_.size()));
684 return static_cast<uint8_t*>(shm_buffers_[buffer_id]->shm->memory()); 685 return static_cast<uint8_t*>(shm_buffers_[buffer_id]->shm->memory());
685 } 686 }
686 687
687 } // namespace content 688 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698