OLD | NEW |
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 #include "webkit/media/crypto/ppapi/clear_key_cdm.h" | 5 #include "webkit/media/crypto/ppapi/clear_key_cdm.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 static unsigned char color = 0; | 331 static unsigned char color = 0; |
332 color += 10; | 332 color += 10; |
333 | 333 |
334 memset(reinterpret_cast<void*>(video_frame->frame_buffer()->data()), | 334 memset(reinterpret_cast<void*>(video_frame->frame_buffer()->data()), |
335 color, frame_size); | 335 color, frame_size); |
336 } | 336 } |
337 #endif // CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER | 337 #endif // CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER |
338 | 338 |
339 cdm::Status ClearKeyCdm::DecryptAndDecodeSamples( | 339 cdm::Status ClearKeyCdm::DecryptAndDecodeSamples( |
340 const cdm::InputBuffer& encrypted_buffer, | 340 const cdm::InputBuffer& encrypted_buffer, |
341 cdm::Buffer* sample_buffer) { | 341 cdm::AudioFrames* audio_frames) { |
342 NOTIMPLEMENTED(); | 342 NOTIMPLEMENTED(); |
343 return cdm::kDecryptError; | 343 return cdm::kDecryptError; |
344 } | 344 } |
345 | 345 |
346 } // namespace webkit_media | 346 } // namespace webkit_media |
OLD | NEW |