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

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

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/ozone/surface_factory_cast.cc ('k') | chromecast/ozone/surface_ozone_egl_cast.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_OZONE_SURFACE_OZONE_EGL_CAST_H_
6 #define CHROMECAST_OZONE_SURFACE_OZONE_EGL_CAST_H_
7
8 #include "ui/ozone/public/surface_ozone_egl.h"
9
10 namespace chromecast {
11 namespace ozone {
12
13 class SurfaceFactoryCast;
14
15 // EGL surface wrapper for OzonePlatformCast.
16 class SurfaceOzoneEglCast : public ui::SurfaceOzoneEGL {
17 public:
18 explicit SurfaceOzoneEglCast(SurfaceFactoryCast* parent) : parent_(parent) {}
19 ~SurfaceOzoneEglCast() override;
20
21 // SurfaceOzoneEGL implementation:
22 intptr_t GetNativeWindow() override;
23 bool OnSwapBuffers() override;
24 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override;
25 bool ResizeNativeWindow(const gfx::Size& viewport_size) override;
26 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override;
27
28 private:
29 SurfaceFactoryCast* parent_;
30
31 DISALLOW_COPY_AND_ASSIGN(SurfaceOzoneEglCast);
32 };
33
34 } // namespace ozone
35 } // namespace chromecast
36
37 #endif // CHROMECAST_OZONE_SURFACE_OZONE_EGL_CAST_H_
OLDNEW
« no previous file with comments | « chromecast/ozone/surface_factory_cast.cc ('k') | chromecast/ozone/surface_ozone_egl_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698