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

Side by Side Diff: chromecast/ozone/surface_factory_cast.h

Issue 1059073002: Loads CastEglPlatform implementation from shared library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef CHROMECAST_OZONE_SURFACE_FACTORY_CAST_H_ 5 #ifndef CHROMECAST_OZONE_SURFACE_FACTORY_CAST_H_
6 #define CHROMECAST_OZONE_SURFACE_FACTORY_CAST_H_ 6 #define CHROMECAST_OZONE_SURFACE_FACTORY_CAST_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "ui/gfx/geometry/size.h" 10 #include "ui/gfx/geometry/size.h"
11 #include "ui/ozone/public/surface_factory_ozone.h" 11 #include "ui/ozone/public/surface_factory_ozone.h"
12 12
13 namespace chromecast { 13 namespace chromecast {
14 class CastEglPlatform;
15
14 namespace ozone { 16 namespace ozone {
15 17
16 class CastEglPlatform;
17
18 // SurfaceFactoryOzone implementation for OzonePlatformCast. 18 // SurfaceFactoryOzone implementation for OzonePlatformCast.
19 class SurfaceFactoryCast : public ui::SurfaceFactoryOzone { 19 class SurfaceFactoryCast : public ui::SurfaceFactoryOzone {
20 public: 20 public:
21 explicit SurfaceFactoryCast(scoped_ptr<CastEglPlatform> egl_platform); 21 explicit SurfaceFactoryCast(scoped_ptr<CastEglPlatform> egl_platform);
22 ~SurfaceFactoryCast() override; 22 ~SurfaceFactoryCast() override;
23 23
24 // ui::SurfaceFactoryOzone implementation: 24 // ui::SurfaceFactoryOzone implementation:
25 intptr_t GetNativeDisplay() override; 25 intptr_t GetNativeDisplay() override;
26 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget( 26 scoped_ptr<ui::SurfaceOzoneEGL> CreateEGLSurfaceForWidget(
27 gfx::AcceleratedWidget widget) override; 27 gfx::AcceleratedWidget widget) override;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 gfx::Size new_display_size_; 65 gfx::Size new_display_size_;
66 scoped_ptr<CastEglPlatform> egl_platform_; 66 scoped_ptr<CastEglPlatform> egl_platform_;
67 67
68 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast); 68 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryCast);
69 }; 69 };
70 70
71 } // namespace ozone 71 } // namespace ozone
72 } // namespace chromecast 72 } // namespace chromecast
73 73
74 #endif // CHROMECAST_OZONE_SURFACE_FACTORY_CAST_H_ 74 #endif // CHROMECAST_OZONE_SURFACE_FACTORY_CAST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698