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

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

Issue 1723303002: Implement GLX for Ozone X11. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_FACTORY_OZONE_H_ 5 #ifndef UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
6 #define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 6 #define UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 gfx::BufferFormat format, 107 gfx::BufferFormat format,
108 gfx::BufferUsage usage); 108 gfx::BufferUsage usage);
109 109
110 // Create a single native buffer from an existing handle. Takes ownership of 110 // Create a single native buffer from an existing handle. Takes ownership of
111 // |handle| and can be called on any thread. 111 // |handle| and can be called on any thread.
112 virtual scoped_refptr<NativePixmap> CreateNativePixmapFromHandle( 112 virtual scoped_refptr<NativePixmap> CreateNativePixmapFromHandle(
113 gfx::Size size, 113 gfx::Size size,
114 gfx::BufferFormat format, 114 gfx::BufferFormat format,
115 const gfx::NativePixmapHandle& handle); 115 const gfx::NativePixmapHandle& handle);
116 116
117 // Returns true if the Ozone platform supports GLX.
118 virtual bool SupportsGLX();
119
117 protected: 120 protected:
118 SurfaceFactoryOzone(); 121 SurfaceFactoryOzone();
119 virtual ~SurfaceFactoryOzone(); 122 virtual ~SurfaceFactoryOzone();
120 123
121 private: 124 private:
122 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone); 125 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone);
123 }; 126 };
124 127
125 } // namespace ui 128 } // namespace ui
126 129
127 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 130 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698