OLD | NEW |
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/renderer/pepper/ppb_video_decoder_impl.h" | 5 #include "content/renderer/pepper/ppb_video_decoder_impl.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
11 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
12 #include "content/common/gpu/client/gpu_channel_host.h" | 12 #include "content/common/gpu/client/gpu_channel_host.h" |
13 #include "content/renderer/pepper/common.h" | |
14 #include "content/renderer/pepper/host_globals.h" | 13 #include "content/renderer/pepper/host_globals.h" |
15 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 14 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
16 #include "content/renderer/pepper/plugin_module.h" | 15 #include "content/renderer/pepper/plugin_module.h" |
17 #include "content/renderer/pepper/ppb_buffer_impl.h" | 16 #include "content/renderer/pepper/ppb_buffer_impl.h" |
18 #include "content/renderer/pepper/ppb_graphics_3d_impl.h" | 17 #include "content/renderer/pepper/ppb_graphics_3d_impl.h" |
19 #include "content/renderer/render_thread_impl.h" | 18 #include "content/renderer/render_thread_impl.h" |
20 #include "gpu/command_buffer/client/gles2_implementation.h" | 19 #include "gpu/command_buffer/client/gles2_implementation.h" |
21 #include "media/video/picture.h" | 20 #include "media/video/picture.h" |
22 #include "media/video/video_decode_accelerator.h" | 21 #include "media/video/video_decode_accelerator.h" |
23 #include "ppapi/c/dev/pp_video_dev.h" | 22 #include "ppapi/c/dev/pp_video_dev.h" |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 DCHECK(RenderThreadImpl::current()); | 287 DCHECK(RenderThreadImpl::current()); |
289 RunBitstreamBufferCallback(bitstream_buffer_id, PP_OK); | 288 RunBitstreamBufferCallback(bitstream_buffer_id, PP_OK); |
290 } | 289 } |
291 | 290 |
292 void PPB_VideoDecoder_Impl::NotifyFlushDone() { | 291 void PPB_VideoDecoder_Impl::NotifyFlushDone() { |
293 DCHECK(RenderThreadImpl::current()); | 292 DCHECK(RenderThreadImpl::current()); |
294 RunFlushCallback(PP_OK); | 293 RunFlushCallback(PP_OK); |
295 } | 294 } |
296 | 295 |
297 } // namespace content | 296 } // namespace content |
OLD | NEW |