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

Side by Side Diff: webkit/plugins/ppapi/ppb_video_decoder_impl.h

Issue 10749019: VideoDecodeAccelerator now SupportsWeakPtr instead of being RefCountedThreadSafe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
OLDNEW
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 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 private: 67 private:
68 explicit PPB_VideoDecoder_Impl(PP_Instance instance); 68 explicit PPB_VideoDecoder_Impl(PP_Instance instance);
69 bool Init(PP_Resource graphics_context, 69 bool Init(PP_Resource graphics_context,
70 PluginDelegate::PlatformContext3D* context, 70 PluginDelegate::PlatformContext3D* context,
71 gpu::gles2::GLES2Implementation* gles2_impl, 71 gpu::gles2::GLES2Implementation* gles2_impl,
72 PP_VideoDecoder_Profile profile); 72 PP_VideoDecoder_Profile profile);
73 73
74 // This is NULL before initialization, and if this PPB_VideoDecoder_Impl is 74 // This is NULL before initialization, and if this PPB_VideoDecoder_Impl is
75 // swapped with another. 75 // swapped with another.
76 scoped_refptr<PluginDelegate::PlatformVideoDecoder> platform_video_decoder_; 76 scoped_ptr<PluginDelegate::PlatformVideoDecoder> platform_video_decoder_;
77 77
78 // Reference to the plugin requesting this interface. 78 // Reference to the plugin requesting this interface.
79 const PPP_VideoDecoder_Dev* ppp_videodecoder_; 79 const PPP_VideoDecoder_Dev* ppp_videodecoder_;
80 80
81 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl); 81 DISALLOW_COPY_AND_ASSIGN(PPB_VideoDecoder_Impl);
82 }; 82 };
83 83
84 } // namespace ppapi 84 } // namespace ppapi
85 } // namespace webkit 85 } // namespace webkit
86 86
87 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_ 87 #endif // WEBKIT_PLUGINS_PPAPI_PPB_VIDEO_DECODER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698