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

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

Issue 1059073002: Loads CastEglPlatform implementation from shared library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add myself to OWNERS for cast ozone platform. Created 5 years, 8 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
« no previous file with comments | « chromecast/ozone/surface_ozone_egl_cast.h ('k') | chromecast/public/cast_egl_platform.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chromecast/ozone/surface_ozone_egl_cast.h"
6
7 #include "chromecast/ozone/surface_factory_cast.h"
8 #include "ui/gfx/vsync_provider.h"
9
10 namespace chromecast {
11 namespace ozone {
12
13 SurfaceOzoneEglCast::~SurfaceOzoneEglCast() {
14 parent_->ChildDestroyed();
15 }
16
17 intptr_t SurfaceOzoneEglCast::GetNativeWindow() {
18 return reinterpret_cast<intptr_t>(parent_->GetNativeWindow());
19 }
20
21 bool SurfaceOzoneEglCast::OnSwapBuffers() {
22 return true;
23 }
24
25 bool SurfaceOzoneEglCast::OnSwapBuffersAsync(
26 const SwapCompletionCallback& callback) {
27 callback.Run();
28 return true;
29 }
30
31 bool SurfaceOzoneEglCast::ResizeNativeWindow(const gfx::Size& viewport_size) {
32 return parent_->ResizeDisplay(viewport_size);
33 }
34
35 scoped_ptr<gfx::VSyncProvider> SurfaceOzoneEglCast::CreateVSyncProvider() {
36 return scoped_ptr<gfx::VSyncProvider>();
37 }
38
39 } // namespace ozone
40 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/ozone/surface_ozone_egl_cast.h ('k') | chromecast/public/cast_egl_platform.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698