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 #include "chromecast/ozone/surface_ozone_egl_chromecast.h" | |
lcwu1
2015/03/27 00:51:43
Add a vertical space above.
halliwell
2015/03/27 01:45:03
Done.
| |
5 | |
6 #include "chromecast/ozone/surface_factory_chromecast.h" | |
7 #include "ui/gfx/vsync_provider.h" | |
8 | |
9 namespace chromecast { | |
10 namespace ozone { | |
11 | |
12 SurfaceOzoneEglChromecast::~SurfaceOzoneEglChromecast() { | |
13 parent_->ChildDestroyed(); | |
14 } | |
15 | |
16 intptr_t SurfaceOzoneEglChromecast::GetNativeWindow() { | |
17 return reinterpret_cast<intptr_t>(parent_->GetNativeWindow()); | |
18 } | |
19 | |
20 bool SurfaceOzoneEglChromecast::OnSwapBuffers() { | |
21 return true; | |
22 } | |
23 | |
24 bool SurfaceOzoneEglChromecast::OnSwapBuffersAsync( | |
25 const SwapCompletionCallback& callback) { | |
26 callback.Run(); | |
27 return true; | |
28 } | |
29 | |
30 bool SurfaceOzoneEglChromecast::ResizeNativeWindow( | |
31 const gfx::Size& viewport_size) { | |
32 return parent_->ResizeDisplay(viewport_size); | |
33 } | |
34 | |
35 scoped_ptr<gfx::VSyncProvider> | |
36 SurfaceOzoneEglChromecast::CreateVSyncProvider() { | |
37 return scoped_ptr<gfx::VSyncProvider>(); | |
38 } | |
39 | |
40 } // namespace ozone | |
41 } // namespace chromecast | |
OLD | NEW |