| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "media/ozone/media_ozone_platform.h" | 5 #include "media/ozone/media_ozone_platform.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/trace_event/trace_event.h" | 8 #include "base/trace_event/trace_event.h" |
| 9 #include "ui/ozone/platform_object.h" | 9 #include "ui/ozone/platform_object.h" |
| 10 #include "ui/ozone/platform_selection.h" | 10 #include "ui/ozone/platform_selection.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // generate_constructor_list.py script. They should be removed once the | 29 // generate_constructor_list.py script. They should be removed once the |
| 30 // internal Ozone platforms decide to actually implement their media specifics. | 30 // internal Ozone platforms decide to actually implement their media specifics. |
| 31 MediaOzonePlatform* CreateMediaOzonePlatformCaca() { | 31 MediaOzonePlatform* CreateMediaOzonePlatformCaca() { |
| 32 return new MediaOzonePlatformStub; | 32 return new MediaOzonePlatformStub; |
| 33 } | 33 } |
| 34 | 34 |
| 35 MediaOzonePlatform* CreateMediaOzonePlatformDri() { | 35 MediaOzonePlatform* CreateMediaOzonePlatformDri() { |
| 36 return new MediaOzonePlatformStub; | 36 return new MediaOzonePlatformStub; |
| 37 } | 37 } |
| 38 | 38 |
| 39 MediaOzonePlatform* CreateMediaOzonePlatformDrm() { |
| 40 return new MediaOzonePlatformStub; |
| 41 } |
| 42 |
| 39 MediaOzonePlatform* CreateMediaOzonePlatformEgltest() { | 43 MediaOzonePlatform* CreateMediaOzonePlatformEgltest() { |
| 40 return new MediaOzonePlatformStub; | 44 return new MediaOzonePlatformStub; |
| 41 } | 45 } |
| 42 | 46 |
| 43 MediaOzonePlatform* CreateMediaOzonePlatformGbm() { | 47 MediaOzonePlatform* CreateMediaOzonePlatformGbm() { |
| 44 return new MediaOzonePlatformStub; | 48 return new MediaOzonePlatformStub; |
| 45 } | 49 } |
| 46 | 50 |
| 47 MediaOzonePlatform* CreateMediaOzonePlatformTest() { | 51 MediaOzonePlatform* CreateMediaOzonePlatformTest() { |
| 48 return new MediaOzonePlatformStub; | 52 return new MediaOzonePlatformStub; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 ui::PlatformObject<MediaOzonePlatform>::Create(); | 88 ui::PlatformObject<MediaOzonePlatform>::Create(); |
| 85 | 89 |
| 86 // TODO(spang): Currently need to leak this object. | 90 // TODO(spang): Currently need to leak this object. |
| 87 CHECK_EQ(instance_, platform.release()); | 91 CHECK_EQ(instance_, platform.release()); |
| 88 } | 92 } |
| 89 | 93 |
| 90 // static | 94 // static |
| 91 MediaOzonePlatform* MediaOzonePlatform::instance_; | 95 MediaOzonePlatform* MediaOzonePlatform::instance_; |
| 92 | 96 |
| 93 } // namespace media | 97 } // namespace media |
| OLD | NEW |