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

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

Issue 2148983002: gpu: Take surface handle into account when importing buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid crash in DrmDeviceManager::GetDrmDevice when passed invalid widget Created 4 years, 5 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 9
10 #include <memory> 10 #include <memory>
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 // It can be called on any thread. 104 // It can be called on any thread.
105 virtual scoped_refptr<NativePixmap> CreateNativePixmap( 105 virtual scoped_refptr<NativePixmap> CreateNativePixmap(
106 gfx::AcceleratedWidget widget, 106 gfx::AcceleratedWidget widget,
107 gfx::Size size, 107 gfx::Size size,
108 gfx::BufferFormat format, 108 gfx::BufferFormat format,
109 gfx::BufferUsage usage); 109 gfx::BufferUsage usage);
110 110
111 // Create a single native buffer from an existing handle. Takes ownership of 111 // Create a single native buffer from an existing handle. Takes ownership of
112 // |handle| and can be called on any thread. 112 // |handle| and can be called on any thread.
113 virtual scoped_refptr<NativePixmap> CreateNativePixmapFromHandle( 113 virtual scoped_refptr<NativePixmap> CreateNativePixmapFromHandle(
114 gfx::AcceleratedWidget widget,
114 gfx::Size size, 115 gfx::Size size,
115 gfx::BufferFormat format, 116 gfx::BufferFormat format,
116 const gfx::NativePixmapHandle& handle); 117 const gfx::NativePixmapHandle& handle);
117 118
118 protected: 119 protected:
119 SurfaceFactoryOzone(); 120 SurfaceFactoryOzone();
120 virtual ~SurfaceFactoryOzone(); 121 virtual ~SurfaceFactoryOzone();
121 122
122 private: 123 private:
123 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone); 124 DISALLOW_COPY_AND_ASSIGN(SurfaceFactoryOzone);
124 }; 125 };
125 126
126 } // namespace ui 127 } // namespace ui
127 128
128 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_ 129 #endif // UI_OZONE_PUBLIC_SURFACE_FACTORY_OZONE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_surface_factory.cc ('k') | ui/ozone/public/surface_factory_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698