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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 int GetDmaBufFd() const override { return -1; } | 230 int GetDmaBufFd() const override { return -1; } |
231 int GetDmaBufPitch() const override { return 0; } | 231 int GetDmaBufPitch() const override { return 0; } |
232 gfx::BufferFormat GetBufferFormat() const override { | 232 gfx::BufferFormat GetBufferFormat() const override { |
233 return gfx::BufferFormat::BGRA_8888; | 233 return gfx::BufferFormat::BGRA_8888; |
234 } | 234 } |
235 gfx::Size GetBufferSize() const override { return gfx::Size(); } | 235 gfx::Size GetBufferSize() const override { return gfx::Size(); } |
236 | 236 |
237 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 237 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
238 int plane_z_order, | 238 int plane_z_order, |
239 gfx::OverlayTransform plane_transform, | 239 gfx::OverlayTransform plane_transform, |
| 240 gfx::BufferFormat storage_format, |
240 const gfx::Rect& display_bounds, | 241 const gfx::Rect& display_bounds, |
241 const gfx::RectF& crop_rect) override { | 242 const gfx::RectF& crop_rect, |
| 243 bool handle_scaling) override { |
242 return true; | 244 return true; |
243 } | 245 } |
244 void SetProcessingCallback( | 246 void SetProcessingCallback( |
245 const ProcessingCallback& processing_callback) override {} | 247 const ProcessingCallback& processing_callback) override {} |
246 scoped_refptr<NativePixmap> GetProcessedPixmap( | 248 scoped_refptr<NativePixmap> GetProcessedPixmap( |
247 gfx::Size target_size, | 249 gfx::Size target_size, |
248 gfx::BufferFormat target_format) override { | 250 gfx::BufferFormat target_format) override { |
249 return nullptr; | 251 return nullptr; |
250 } | 252 } |
251 gfx::NativePixmapHandle ExportHandle() override { | 253 gfx::NativePixmapHandle ExportHandle() override { |
(...skipping 25 matching lines...) Expand all Loading... |
277 return false; | 279 return false; |
278 } | 280 } |
279 | 281 |
280 set_gl_get_proc_address.Run(gl_proc); | 282 set_gl_get_proc_address.Run(gl_proc); |
281 add_gl_library.Run(lib_egl); | 283 add_gl_library.Run(lib_egl); |
282 add_gl_library.Run(lib_gles2); | 284 add_gl_library.Run(lib_gles2); |
283 return true; | 285 return true; |
284 } | 286 } |
285 | 287 |
286 } // namespace ui | 288 } // namespace ui |
OLD | NEW |