OLD | NEW |
(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_ |
OLD | NEW |