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

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

Issue 7629017: Add a unified resource tracker shared between the proxy and the impl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments 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
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 "webkit/plugins/ppapi/ppb_video_decoder_impl.h" 5 #include "webkit/plugins/ppapi/ppb_video_decoder_impl.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 RunBitstreamBufferCallback(bitstream_buffer_id, PP_OK); 239 RunBitstreamBufferCallback(bitstream_buffer_id, PP_OK);
240 } 240 }
241 241
242 void PPB_VideoDecoder_Impl::NotifyFlushDone() { 242 void PPB_VideoDecoder_Impl::NotifyFlushDone() {
243 RunFlushCallback(PP_OK); 243 RunFlushCallback(PP_OK);
244 } 244 }
245 245
246 void PPB_VideoDecoder_Impl::NotifyInitializeDone() { 246 void PPB_VideoDecoder_Impl::NotifyInitializeDone() {
247 NOTREACHED() << "PlatformVideoDecoder::Initialize() is synchronous!"; 247 NOTREACHED() << "PlatformVideoDecoder::Initialize() is synchronous!";
248 } 248 }
249 void PPB_VideoDecoder_Impl::AddRefResource(PP_Resource resource) {
250 ResourceTracker::Get()->AddRefResource(resource);
251 }
252
253 void PPB_VideoDecoder_Impl::UnrefResource(PP_Resource resource) {
254 ResourceTracker::Get()->UnrefResource(resource);
255 }
256 249
257 } // namespace ppapi 250 } // namespace ppapi
258 } // namespace webkit 251 } // namespace webkit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698