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

Side by Side Diff: media/ozone/media_ozone_platform.cc

Issue 1059073002: Loads CastEglPlatform implementation from shared library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add myself to OWNERS for cast ozone platform. Created 5 years, 8 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
« no previous file with comments | « chromecast/public/cast_egl_platform_shlib.h ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 14 matching lines...) Expand all
25 25
26 } // namespace 26 } // namespace
27 27
28 // The following statics are just convenient stubs, declared by the 28 // The following statics are just convenient stubs, declared by the
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* CreateMediaOzonePlatformCast() {
36 return new MediaOzonePlatformStub;
37 }
38
35 MediaOzonePlatform* CreateMediaOzonePlatformDri() { 39 MediaOzonePlatform* CreateMediaOzonePlatformDri() {
36 return new MediaOzonePlatformStub; 40 return new MediaOzonePlatformStub;
37 } 41 }
38 42
39 MediaOzonePlatform* CreateMediaOzonePlatformDrm() { 43 MediaOzonePlatform* CreateMediaOzonePlatformDrm() {
40 return new MediaOzonePlatformStub; 44 return new MediaOzonePlatformStub;
41 } 45 }
42 46
43 MediaOzonePlatform* CreateMediaOzonePlatformEgltest() { 47 MediaOzonePlatform* CreateMediaOzonePlatformEgltest() {
44 return new MediaOzonePlatformStub; 48 return new MediaOzonePlatformStub;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 ui::PlatformObject<MediaOzonePlatform>::Create(); 92 ui::PlatformObject<MediaOzonePlatform>::Create();
89 93
90 // TODO(spang): Currently need to leak this object. 94 // TODO(spang): Currently need to leak this object.
91 CHECK_EQ(instance_, platform.release()); 95 CHECK_EQ(instance_, platform.release());
92 } 96 }
93 97
94 // static 98 // static
95 MediaOzonePlatform* MediaOzonePlatform::instance_; 99 MediaOzonePlatform* MediaOzonePlatform::instance_;
96 100
97 } // namespace media 101 } // namespace media
OLDNEW
« no previous file with comments | « chromecast/public/cast_egl_platform_shlib.h ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698