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

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

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 #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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698