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

Side by Side Diff: ui/ozone/platform/cast/surface_ozone_egl_cast.cc

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

Powered by Google App Engine
This is Rietveld 408576698