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

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

Issue 970023002: Moved gpu factories to media/renderers/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed mojo webmediaplayer_factory.cc Created 5 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 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/memory/shared_memory.h" 6 #include "base/memory/shared_memory.h"
7 #include "base/numerics/safe_math.h" 7 #include "base/numerics/safe_math.h"
8 #include "content/common/gpu/client/command_buffer_proxy_impl.h" 8 #include "content/common/gpu/client/command_buffer_proxy_impl.h"
9 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h" 9 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h"
10 #include "content/public/renderer/renderer_ppapi_host.h" 10 #include "content/public/renderer/renderer_ppapi_host.h"
11 #include "content/renderer/pepper/gfx_conversion.h" 11 #include "content/renderer/pepper/gfx_conversion.h"
12 #include "content/renderer/pepper/host_globals.h" 12 #include "content/renderer/pepper/host_globals.h"
13 #include "content/renderer/pepper/pepper_video_encoder_host.h" 13 #include "content/renderer/pepper/pepper_video_encoder_host.h"
14 #include "content/renderer/render_thread_impl.h" 14 #include "content/renderer/render_thread_impl.h"
15 #include "media/base/bind_to_current_loop.h" 15 #include "media/base/bind_to_current_loop.h"
16 #include "media/base/video_frame.h" 16 #include "media/base/video_frame.h"
17 #include "media/filters/gpu_video_accelerator_factories.h" 17 #include "media/renderers/gpu_video_accelerator_factories.h"
18 #include "media/video/video_encode_accelerator.h" 18 #include "media/video/video_encode_accelerator.h"
19 #include "ppapi/c/pp_codecs.h" 19 #include "ppapi/c/pp_codecs.h"
20 #include "ppapi/c/pp_errors.h" 20 #include "ppapi/c/pp_errors.h"
21 #include "ppapi/c/pp_graphics_3d.h" 21 #include "ppapi/c/pp_graphics_3d.h"
22 #include "ppapi/host/dispatch_host_message.h" 22 #include "ppapi/host/dispatch_host_message.h"
23 #include "ppapi/host/ppapi_host.h" 23 #include "ppapi/host/ppapi_host.h"
24 #include "ppapi/proxy/ppapi_messages.h" 24 #include "ppapi/proxy/ppapi_messages.h"
25 #include "ppapi/shared_impl/media_stream_buffer.h" 25 #include "ppapi/shared_impl/media_stream_buffer.h"
26 26
27 using ppapi::proxy::SerializedHandle; 27 using ppapi::proxy::SerializedHandle;
(...skipping 615 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 DCHECK(RenderThreadImpl::current()); 643 DCHECK(RenderThreadImpl::current());
644 644
645 encoder_last_error_ = error; 645 encoder_last_error_ = error;
646 Close(); 646 Close();
647 host()->SendUnsolicitedReply( 647 host()->SendUnsolicitedReply(
648 pp_resource(), 648 pp_resource(),
649 PpapiPluginMsg_VideoEncoder_NotifyError(encoder_last_error_)); 649 PpapiPluginMsg_VideoEncoder_NotifyError(encoder_last_error_));
650 } 650 }
651 651
652 } // namespace content 652 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/webrtc/peer_connection_dependency_factory.cc ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698