OLD | NEW |
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 #include "chromecast/ozone/surface_ozone_egl_cast.h" | 5 #include "ui/ozone/platform/cast/surface_ozone_egl_cast.h" |
6 | 6 |
7 #include "chromecast/ozone/surface_factory_cast.h" | |
8 #include "ui/gfx/vsync_provider.h" | 7 #include "ui/gfx/vsync_provider.h" |
| 8 #include "ui/ozone/platform/cast/surface_factory_cast.h" |
9 | 9 |
10 namespace chromecast { | 10 namespace ui { |
11 namespace ozone { | |
12 | 11 |
13 SurfaceOzoneEglCast::~SurfaceOzoneEglCast() { | 12 SurfaceOzoneEglCast::~SurfaceOzoneEglCast() { |
14 parent_->ChildDestroyed(); | 13 parent_->ChildDestroyed(); |
15 } | 14 } |
16 | 15 |
17 intptr_t SurfaceOzoneEglCast::GetNativeWindow() { | 16 intptr_t SurfaceOzoneEglCast::GetNativeWindow() { |
18 return reinterpret_cast<intptr_t>(parent_->GetNativeWindow()); | 17 return reinterpret_cast<intptr_t>(parent_->GetNativeWindow()); |
19 } | 18 } |
20 | 19 |
21 bool SurfaceOzoneEglCast::OnSwapBuffers() { | 20 bool SurfaceOzoneEglCast::OnSwapBuffers() { |
22 return true; | 21 return true; |
23 } | 22 } |
24 | 23 |
25 bool SurfaceOzoneEglCast::OnSwapBuffersAsync( | 24 bool SurfaceOzoneEglCast::OnSwapBuffersAsync( |
26 const SwapCompletionCallback& callback) { | 25 const SwapCompletionCallback& callback) { |
27 callback.Run(); | 26 callback.Run(); |
28 return true; | 27 return true; |
29 } | 28 } |
30 | 29 |
31 bool SurfaceOzoneEglCast::ResizeNativeWindow(const gfx::Size& viewport_size) { | 30 bool SurfaceOzoneEglCast::ResizeNativeWindow(const gfx::Size& viewport_size) { |
32 return parent_->ResizeDisplay(viewport_size); | 31 return parent_->ResizeDisplay(viewport_size); |
33 } | 32 } |
34 | 33 |
35 scoped_ptr<gfx::VSyncProvider> SurfaceOzoneEglCast::CreateVSyncProvider() { | 34 scoped_ptr<gfx::VSyncProvider> SurfaceOzoneEglCast::CreateVSyncProvider() { |
36 return scoped_ptr<gfx::VSyncProvider>(); | 35 return nullptr; |
37 } | 36 } |
38 | 37 |
39 } // namespace ozone | 38 } // namespace ui |
40 } // namespace chromecast | |
OLD | NEW |