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

Side by Side Diff: ppapi/proxy/ppp_video_decoder_proxy.cc

Issue 7623018: Move host resource from the proxy to the shared_impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.h ('k') | ppapi/proxy/resource_creation_proxy.h » ('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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "ppapi/proxy/ppp_video_decoder_proxy.h" 5 #include "ppapi/proxy/ppp_video_decoder_proxy.h"
6 6
7 #include "ppapi/proxy/host_dispatcher.h" 7 #include "ppapi/proxy/host_dispatcher.h"
8 #include "ppapi/proxy/ppapi_messages.h" 8 #include "ppapi/proxy/ppapi_messages.h"
9 #include "ppapi/proxy/ppb_video_decoder_proxy.h" 9 #include "ppapi/proxy/ppb_video_decoder_proxy.h"
10 #include "ppapi/thunk/enter.h" 10 #include "ppapi/thunk/enter.h"
11 #include "ppapi/thunk/ppb_video_decoder_api.h" 11 #include "ppapi/thunk/ppb_video_decoder_api.h"
12 #include "ppapi/thunk/thunk.h" 12 #include "ppapi/thunk/thunk.h"
13 13
14 using ::ppapi::thunk::PPB_VideoDecoder_API; 14 using ppapi::HostResource;
15 using ppapi::thunk::PPB_VideoDecoder_API;
15 16
16 namespace pp { 17 namespace pp {
17 namespace proxy { 18 namespace proxy {
18 19
19 namespace { 20 namespace {
20 21
21 void ProvidePictureBuffers(PP_Instance instance, PP_Resource decoder, 22 void ProvidePictureBuffers(PP_Instance instance, PP_Resource decoder,
22 uint32_t req_num_of_bufs, PP_Size dimensions) { 23 uint32_t req_num_of_bufs, PP_Size dimensions) {
23 HostResource decoder_resource; 24 HostResource decoder_resource;
24 decoder_resource.SetHostResource(instance, decoder); 25 decoder_resource.SetHostResource(instance, decoder);
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void PPP_VideoDecoder_Proxy::OnMsgNotifyError( 159 void PPP_VideoDecoder_Proxy::OnMsgNotifyError(
159 const HostResource& decoder, PP_VideoDecodeError_Dev error) { 160 const HostResource& decoder, PP_VideoDecodeError_Dev error) {
160 PP_Resource plugin_decoder = PluginResourceTracker::GetInstance()-> 161 PP_Resource plugin_decoder = PluginResourceTracker::GetInstance()->
161 PluginResourceForHostResource(decoder); 162 PluginResourceForHostResource(decoder);
162 ppp_video_decoder_target()->NotifyError( 163 ppp_video_decoder_target()->NotifyError(
163 decoder.instance(), plugin_decoder, error); 164 decoder.instance(), plugin_decoder, error);
164 } 165 }
165 166
166 } // namespace proxy 167 } // namespace proxy
167 } // namespace pp 168 } // namespace pp
OLDNEW
« no previous file with comments | « ppapi/proxy/ppp_video_decoder_proxy.h ('k') | ppapi/proxy/resource_creation_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698