OLD | NEW |
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 #include "ui/ozone/platform/cast/surface_factory_cast.h" | 5 #include "ui/ozone/platform/cast/surface_factory_cast.h" |
6 | 6 |
7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
8 #include <EGL/egl.h> | 8 #include <EGL/egl.h> |
9 | 9 |
10 #include "base/callback_helpers.h" | 10 #include "base/callback_helpers.h" |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 | 187 |
188 void* GetEGLClientBuffer() override { | 188 void* GetEGLClientBuffer() override { |
189 // TODO(halliwell): try to implement this through CastEglPlatform. | 189 // TODO(halliwell): try to implement this through CastEglPlatform. |
190 return nullptr; | 190 return nullptr; |
191 } | 191 } |
192 int GetDmaBufFd() override { return -1; } | 192 int GetDmaBufFd() override { return -1; } |
193 int GetDmaBufPitch() override { return 0; } | 193 int GetDmaBufPitch() override { return 0; } |
194 gfx::BufferFormat GetBufferFormat() override { | 194 gfx::BufferFormat GetBufferFormat() override { |
195 return gfx::BufferFormat::BGRA_8888; | 195 return gfx::BufferFormat::BGRA_8888; |
196 } | 196 } |
| 197 gfx::Size GetBufferSize() const override { return gfx::Size(); } |
| 198 |
197 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 199 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
198 int plane_z_order, | 200 int plane_z_order, |
199 gfx::OverlayTransform plane_transform, | 201 gfx::OverlayTransform plane_transform, |
200 const gfx::Rect& display_bounds, | 202 const gfx::Rect& display_bounds, |
201 const gfx::RectF& crop_rect) override { | 203 const gfx::RectF& crop_rect) override { |
202 return true; | 204 return true; |
203 } | 205 } |
204 void SetProcessingCallback( | 206 void SetProcessingCallback( |
205 const ProcessingCallback& processing_callback) override {} | 207 const ProcessingCallback& processing_callback) override {} |
206 scoped_refptr<NativePixmap> GetProcessedPixmap( | 208 scoped_refptr<NativePixmap> GetProcessedPixmap( |
(...skipping 30 matching lines...) Expand all Loading... |
237 return false; | 239 return false; |
238 } | 240 } |
239 | 241 |
240 set_gl_get_proc_address.Run(gl_proc); | 242 set_gl_get_proc_address.Run(gl_proc); |
241 add_gl_library.Run(lib_egl); | 243 add_gl_library.Run(lib_egl); |
242 add_gl_library.Run(lib_gles2); | 244 add_gl_library.Run(lib_gles2); |
243 return true; | 245 return true; |
244 } | 246 } |
245 | 247 |
246 } // namespace ui | 248 } // namespace ui |
OLD | NEW |