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

Side by Side Diff: ui/ozone/public/surface_ozone_egl.h

Issue 1426993003: Ozone: Dont hardcode format to YUV when using Overlay Composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cosmetic fixes 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
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"
11 #include "ui/gfx/overlay_transform.h" 11 #include "ui/gfx/overlay_transform.h"
12 #include "ui/gfx/swap_result.h" 12 #include "ui/gfx/swap_result.h"
13 #include "ui/ozone/ozone_base_export.h" 13 #include "ui/ozone/ozone_base_export.h"
14 14
15 namespace gfx { 15 namespace gfx {
16 class Size; 16 class Size;
17 class VSyncProvider; 17 class VSyncProvider;
18 } 18 }
19 19
20 namespace ui { 20 namespace ui {
21 class NativePixmap; 21 class NativePixmap;
22 struct OverlayCheck_Params;
22 23
23 typedef base::Callback<void(gfx::SwapResult)> SwapCompletionCallback; 24 typedef base::Callback<void(gfx::SwapResult)> SwapCompletionCallback;
24 25
26 typedef base::Callback<void(const std::vector<OverlayCheck_Params>&)>
27 OverlayParamCallback;
dnicoara 2015/11/23 19:22:54 I don't think this should be defined here. It isn'
28
25 // The platform-specific part of an EGL surface. 29 // The platform-specific part of an EGL surface.
26 // 30 //
27 // This class owns any bits that the ozone implementation needs freed when 31 // This class owns any bits that the ozone implementation needs freed when
28 // the EGL surface is destroyed. 32 // the EGL surface is destroyed.
29 class OZONE_BASE_EXPORT SurfaceOzoneEGL { 33 class OZONE_BASE_EXPORT SurfaceOzoneEGL {
30 public: 34 public:
31 virtual ~SurfaceOzoneEGL() {} 35 virtual ~SurfaceOzoneEGL() {}
32 36
33 // Returns the EGL native window for rendering onto this surface. 37 // Returns the EGL native window for rendering onto this surface.
34 // This can be used to to create a GLSurface. 38 // This can be used to to create a GLSurface.
(...skipping 20 matching lines...) Expand all
55 // InitializeHardware. Returns an empty scoped_ptr on error. 59 // InitializeHardware. Returns an empty scoped_ptr on error.
56 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0; 60 virtual scoped_ptr<gfx::VSyncProvider> CreateVSyncProvider() = 0;
57 61
58 // Returns true if the surface is created on a UDL device. 62 // Returns true if the surface is created on a UDL device.
59 virtual bool IsUniversalDisplayLinkDevice(); 63 virtual bool IsUniversalDisplayLinkDevice();
60 }; 64 };
61 65
62 } // namespace ui 66 } // namespace ui
63 67
64 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_ 68 #endif // UI_OZONE_PUBLIC_SURFACE_OZONE_EGL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698