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

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

Issue 1436993002: Remove return bool in SurfaceOzoneEGL::OnSwapBuffersAsync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 1 month 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/gl/gl_surface_ozone.cc ('k') | ui/ozone/platform/cast/surface_ozone_egl_cast.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 #ifndef UI_OZONE_PLATFORM_CAST_SURFACE_OZONE_EGL_CAST_H_ 5 #ifndef UI_OZONE_PLATFORM_CAST_SURFACE_OZONE_EGL_CAST_H_
6 #define UI_OZONE_PLATFORM_CAST_SURFACE_OZONE_EGL_CAST_H_ 6 #define UI_OZONE_PLATFORM_CAST_SURFACE_OZONE_EGL_CAST_H_
7 7
8 #include "ui/ozone/public/surface_ozone_egl.h" 8 #include "ui/ozone/public/surface_ozone_egl.h"
9 9
10 namespace ui { 10 namespace ui {
11 11
12 class SurfaceFactoryCast; 12 class SurfaceFactoryCast;
13 13
14 // EGL surface wrapper for OzonePlatformCast. 14 // EGL surface wrapper for OzonePlatformCast.
15 class SurfaceOzoneEglCast : public SurfaceOzoneEGL { 15 class SurfaceOzoneEglCast : public SurfaceOzoneEGL {
16 public: 16 public:
17 explicit SurfaceOzoneEglCast(SurfaceFactoryCast* parent) : parent_(parent) {} 17 explicit SurfaceOzoneEglCast(SurfaceFactoryCast* parent) : parent_(parent) {}
18 ~SurfaceOzoneEglCast() override; 18 ~SurfaceOzoneEglCast() override;
19 19
20 // SurfaceOzoneEGL implementation: 20 // SurfaceOzoneEGL implementation:
21 intptr_t GetNativeWindow() override; 21 intptr_t GetNativeWindow() override;
22 bool OnSwapBuffers() override; 22 bool OnSwapBuffers() override;
23 bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) override; 23 void OnSwapBuffersAsync(const SwapCompletionCallback& callback) override;
24 bool ResizeNativeWindow(const gfx::Size& viewport_size) override; 24 bool ResizeNativeWindow(const gfx::Size& viewport_size) override;
25 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override; 25 scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() override;
26 26
27 private: 27 private:
28 SurfaceFactoryCast* parent_; 28 SurfaceFactoryCast* parent_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(SurfaceOzoneEglCast); 30 DISALLOW_COPY_AND_ASSIGN(SurfaceOzoneEglCast);
31 }; 31 };
32 32
33 } // namespace ui 33 } // namespace ui
34 34
35 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_OZONE_EGL_CAST_H_ 35 #endif // UI_OZONE_PLATFORM_CAST_SURFACE_OZONE_EGL_CAST_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_ozone.cc ('k') | ui/ozone/platform/cast/surface_ozone_egl_cast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698