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

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

Issue 1025453002: Implement common Ozone interface for Chromecast. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
(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_CHROMECAST_H_
6 #define CHROMECAST_OZONE_SURFACE_OZONE_EGL_CHROMECAST_H_
7
8 #include "ui/ozone/public/surface_ozone_egl.h"
9
10 namespace chromecast {
11 namespace ozone {
12
13 class SurfaceFactoryChromecast;
14
15 // EGL surface wrapper for OzonePlatformChromecast.
16 class SurfaceOzoneEglChromecast : public ui::SurfaceOzoneEGL {
17 public:
18 explicit SurfaceOzoneEglChromecast(SurfaceFactoryChromecast* parent)
19 : parent_(parent) {}
20 ~SurfaceOzoneEglChromecast() override;
21
22 // SurfaceOzoneEGL implementation:
23 intptr_t GetNativeWindow() override;
24 bool OnSwapBuffers() override;
25 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override;
26 bool ResizeNativeWindow(const gfx::Size& viewport_size) override;
27 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override;
28
29 private:
30 SurfaceFactoryChromecast* parent_;
31
32 DISALLOW_COPY_AND_ASSIGN(SurfaceOzoneEglChromecast);
33 };
34
35 } // namespace ozone
36 } // namespace chromecast
37
38 #endif // CHROMECAST_OZONE_SURFACE_OZONE_EGL_CHROMECAST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698