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

Side by Side Diff: ui/ozone/public/surface_ozone_egl.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/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PUBLIC_SURFACE_OZONE_EGL_H_ 5 #ifndef UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_
6 #define UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ 6 #define UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 28 matching lines...) Expand all
39 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) = 0; 39 virtual bool ResizeNativeWindow(const gfx::Size& viewport_size) = 0;
40 40
41 // Called after we swap buffers. This is usually a no-op but can 41 // Called after we swap buffers. This is usually a no-op but can
42 // be used to present the new front buffer if the platform requires this. 42 // be used to present the new front buffer if the platform requires this.
43 virtual bool OnSwapBuffers() = 0; 43 virtual bool OnSwapBuffers() = 0;
44 44
45 // Called after we swap buffers. This is usually a no-op but can 45 // Called after we swap buffers. This is usually a no-op but can
46 // be used to present the new front buffer if the platform requires this. 46 // be used to present the new front buffer if the platform requires this.
47 // The callback should be run on the calling thread 47 // The callback should be run on the calling thread
48 // (i.e. same thread SwapBuffersAsync is called). 48 // (i.e. same thread SwapBuffersAsync is called).
49 virtual bool OnSwapBuffersAsync(const SwapCompletionCallback& callback) = 0; 49 virtual void OnSwapBuffersAsync(const SwapCompletionCallback& callback) = 0;
50 50
51 // Returns a gfx::VsyncProvider for this surface. Note that this may be 51 // Returns a gfx::VsyncProvider for this surface. Note that this may be
52 // called after we have entered the sandbox so if there are operations (e.g. 52 // called after we have entered the sandbox so if there are operations (e.g.
53 // opening a file descriptor providing vsync events) that must be done 53 // opening a file descriptor providing vsync events) that must be done
54 // outside of the sandbox, they must have been completed in 54 // outside of the sandbox, they must have been completed in
55 // InitializeHardware. Returns an empty scoped_ptr on error. 55 // InitializeHardware. Returns an empty scoped_ptr on error.
56 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0; 56 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0;
57 57
58 // Returns true if the surface is created on a UDL device. 58 // Returns true if the surface is created on a UDL device.
59 virtual bool IsUniversalDisplayLinkDevice(); 59 virtual bool IsUniversalDisplayLinkDevice();
60 }; 60 };
61 61
62 } // namespace ui 62 } // namespace ui
63 63
64 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ 64 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/egltest/ozone_platform_egltest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698