| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |