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

Unified Diff: ppapi/shared_impl/ppb_video_decoder_shared.h

Issue 8824015: Revert 113290 - Rename the shared_impl resource files to give them more regular names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/shared_impl/ppb_video_decoder_shared.h
===================================================================
--- ppapi/shared_impl/ppb_video_decoder_shared.h (revision 113301)
+++ ppapi/shared_impl/ppb_video_decoder_shared.h (working copy)
@@ -1,77 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
-#define PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
-
-#include <map>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "ppapi/c/dev/ppb_video_decoder_dev.h"
-#include "ppapi/shared_impl/resource.h"
-#include "ppapi/thunk/ppb_video_decoder_api.h"
-
-namespace gpu {
-namespace gles2 {
-class GLES2Implementation;
-} // namespace gles2
-} // namespace gpu
-
-namespace ppapi {
-
-// Implements the logic to set and run callbacks for various video decoder
-// events. Both the proxy and the renderer implementation share this code.
-class PPAPI_SHARED_EXPORT PPB_VideoDecoder_Shared
- : NON_EXPORTED_BASE(public thunk::PPB_VideoDecoder_API) {
- public:
- PPB_VideoDecoder_Shared();
- virtual ~PPB_VideoDecoder_Shared();
-
- // PPB_VideoDecoder_API implementation.
- virtual void Destroy() OVERRIDE;
-
- protected:
- bool SetFlushCallback(PP_CompletionCallback callback);
- bool SetResetCallback(PP_CompletionCallback callback);
- bool SetBitstreamBufferCallback(
- int32 bitstream_buffer_id, PP_CompletionCallback callback);
-
- void RunFlushCallback(int32 result);
- void RunResetCallback(int32 result);
- void RunBitstreamBufferCallback(int32 bitstream_buffer_id, int32 result);
-
- // Tell command buffer to process all commands it has received so far.
- void FlushCommandBuffer();
-
- // Initialize the underlying decoder.
- void InitCommon(PP_Resource graphics_context,
- gpu::gles2::GLES2Implementation* gles2_impl);
-
- private:
- // Key: bitstream_buffer_id, value: callback to run when bitstream decode is
- // done.
- typedef std::map<int32, PP_CompletionCallback> CallbackById;
-
- PP_CompletionCallback flush_callback_;
- PP_CompletionCallback reset_callback_;
- CallbackById bitstream_buffer_callbacks_;
-
- // The resource ID of the underlying Graphics3D object being used. Used only
- // for reference counting to keep it alive for the lifetime of |*this|.
- PP_Resource graphics_context_;
-
- // Reference to the GLES2Implementation owned by |graphics_context_|.
- // Graphics3D is guaranteed to be alive for the lifetime of this class.
- // In the out-of-process case, Graphics3D's gles2_impl() exists in the plugin
- // process only, so gles2_impl_ is NULL in that case.
- gpu::gles2::GLES2Implementation* gles2_impl_;
-
- DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Shared);
-};
-
-} // namespace ppapi
-
-#endif // PPAPI_SHARED_IMPL_PPB_VIDEO_DECODER_SHARED_H_
« 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