OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "base/basictypes.h" | |
6 #include "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
7 #include "media/cdm/ppapi/external_clear_key/cdm_video_decoder.h" | 6 #include "media/cdm/ppapi/external_clear_key/cdm_video_decoder.h" |
8 | 7 |
9 #if defined(CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER) | 8 #if defined(CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER) |
10 #include "media/cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h" | 9 #include "media/cdm/ppapi/external_clear_key/fake_cdm_video_decoder.h" |
11 #endif | 10 #endif |
12 | 11 |
13 #if defined(CLEAR_KEY_CDM_USE_FFMPEG_DECODER) | 12 #if defined(CLEAR_KEY_CDM_USE_FFMPEG_DECODER) |
14 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h" | 13 #include "media/cdm/ppapi/external_clear_key/ffmpeg_cdm_video_decoder.h" |
15 #endif | 14 #endif |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 if (!video_decoder->Initialize(config)) | 47 if (!video_decoder->Initialize(config)) |
49 video_decoder.reset(); | 48 video_decoder.reset(); |
50 #endif | 49 #endif |
51 | 50 |
52 #endif // CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER | 51 #endif // CLEAR_KEY_CDM_USE_FAKE_VIDEO_DECODER |
53 | 52 |
54 return video_decoder.Pass(); | 53 return video_decoder.Pass(); |
55 } | 54 } |
56 | 55 |
57 } // namespace media | 56 } // namespace media |
OLD | NEW |