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

Side by Side Diff: ppapi/shared_impl/ppb_video_decoder_shared.h

Issue 8790004: Rename the shared impl files. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged Created 9 years 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/shared_impl/ppb_url_util_shared.cc ('k') | ppapi/shared_impl/ppb_video_decoder_shared.cc » ('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 #ifndef PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ 5 #ifndef PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
6 #define PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ 6 #define PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
7 7
8 #include <map> 8 #include <map>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "ppapi/c/dev/ppb_video_decoder_dev.h" 13 #include "ppapi/c/dev/ppb_video_decoder_dev.h"
14 #include "ppapi/shared_impl/resource.h" 14 #include "ppapi/shared_impl/resource.h"
15 #include "ppapi/thunk/ppb_video_decoder_api.h" 15 #include "ppapi/thunk/ppb_video_decoder_api.h"
16 16
17 namespace gpu { 17 namespace gpu {
18 namespace gles2 { 18 namespace gles2 {
19 class GLES2Implementation; 19 class GLES2Implementation;
20 } // namespace gles2 20 } // namespace gles2
21 } // namespace gpu 21 } // namespace gpu
22 22
23 namespace ppapi { 23 namespace ppapi {
24 24
25 // Implements the logic to set and run callbacks for various video decoder 25 // Implements the logic to set and run callbacks for various video decoder
26 // events. Both the proxy and the renderer implementation share this code. 26 // events. Both the proxy and the renderer implementation share this code.
27 class PPAPI_SHARED_EXPORT VideoDecoderImpl 27 class PPAPI_SHARED_EXPORT PPB_VideoDecoder_Shared
28 : NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_API) { 28 : NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_API) {
29 public: 29 public:
30 VideoDecoderImpl(); 30 PPB_VideoDecoder_Shared();
31 virtual ~VideoDecoderImpl(); 31 virtual ~PPB_VideoDecoder_Shared();
32 32
33 // PPB_VideoDecoder_API implementation. 33 // PPB_VideoDecoder_API implementation.
34 virtual void Destroy() OVERRIDE; 34 virtual void Destroy() OVERRIDE;
35 35
36 protected: 36 protected:
37 bool SetFlushCallback(PP_CompletionCallback callback); 37 bool SetFlushCallback(PP_CompletionCallback callback);
38 bool SetResetCallback(PP_CompletionCallback callback); 38 bool SetResetCallback(PP_CompletionCallback callback);
39 bool SetBitstreamBufferCallback( 39 bool SetBitstreamBufferCallback(
40 int32 bitstream_buffer_id, PP_CompletionCallback callback); 40 int32 bitstream_buffer_id, PP_CompletionCallback callback);
41 41
(...skipping 20 matching lines...) Expand all
62 // The resource ID of the underlying Graphics3D object being used. Used only 62 // The resource ID of the underlying Graphics3D object being used. Used only
63 // for reference counting to keep it alive for the lifetime of |*this|. 63 // for reference counting to keep it alive for the lifetime of |*this|.
64 PP_Resource graphics_context_; 64 PP_Resource graphics_context_;
65 65
66 // Reference to the GLES2Implementation owned by |graphics_context_|. 66 // Reference to the GLES2Implementation owned by |graphics_context_|.
67 // Graphics3D is guaranteed to be alive for the lifetime of this class. 67 // Graphics3D is guaranteed to be alive for the lifetime of this class.
68 // In the out-of-process case, Graphics3D's gles2_impl() exists in the plugin 68 // In the out-of-process case, Graphics3D's gles2_impl() exists in the plugin
69 // process only, so gles2_impl_ is NULL in that case. 69 // process only, so gles2_impl_ is NULL in that case.
70 gpu::gles2::GLES2Implementation* gles2_impl_; 70 gpu::gles2::GLES2Implementation* gles2_impl_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(VideoDecoderImpl); 72 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Shared);
73 }; 73 };
74 74
75 } // namespace ppapi 75 } // namespace ppapi
76 76
77 #endif // PPAPI_SHARED_IMPL_VIDEO_DECODER_IMPL_H_ 77 #endif // PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_url_util_shared.cc ('k') | ppapi/shared_impl/ppb_video_decoder_shared.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698