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 <EGL/egl.h> | 7 #include <EGL/egl.h> |
8 #include <dlfcn.h> | 8 #include <dlfcn.h> |
9 | 9 |
10 #include <utility> | 10 #include <utility> |
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 | 251 |
252 void* GetEGLClientBuffer() const override { | 252 void* GetEGLClientBuffer() const override { |
253 // TODO(halliwell): try to implement this through CastEglPlatform. | 253 // TODO(halliwell): try to implement this through CastEglPlatform. |
254 return nullptr; | 254 return nullptr; |
255 } | 255 } |
256 bool AreDmaBufFdsValid() const override { return false; } | 256 bool AreDmaBufFdsValid() const override { return false; } |
257 size_t GetDmaBufFdCount() const override { return 0; } | 257 size_t GetDmaBufFdCount() const override { return 0; } |
258 int GetDmaBufFd(size_t plane) const override { return -1; } | 258 int GetDmaBufFd(size_t plane) const override { return -1; } |
259 int GetDmaBufPitch(size_t plane) const override { return 0; } | 259 int GetDmaBufPitch(size_t plane) const override { return 0; } |
260 int GetDmaBufOffset(size_t plane) const override { return 0; } | 260 int GetDmaBufOffset(size_t plane) const override { return 0; } |
261 uint64_t GetDmaBufModifier(size_t plane) const override { return 0; } | |
262 gfx::BufferFormat GetBufferFormat() const override { | 261 gfx::BufferFormat GetBufferFormat() const override { |
263 return gfx::BufferFormat::BGRA_8888; | 262 return gfx::BufferFormat::BGRA_8888; |
264 } | 263 } |
265 gfx::Size GetBufferSize() const override { return gfx::Size(); } | 264 gfx::Size GetBufferSize() const override { return gfx::Size(); } |
266 | 265 |
267 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 266 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
268 int plane_z_order, | 267 int plane_z_order, |
269 gfx::OverlayTransform plane_transform, | 268 gfx::OverlayTransform plane_transform, |
270 const gfx::Rect& display_bounds, | 269 const gfx::Rect& display_bounds, |
271 const gfx::RectF& crop_rect) override { | 270 const gfx::RectF& crop_rect) override { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 return false; | 304 return false; |
306 } | 305 } |
307 | 306 |
308 set_gl_get_proc_address.Run(gl_proc); | 307 set_gl_get_proc_address.Run(gl_proc); |
309 add_gl_library.Run(lib_egl); | 308 add_gl_library.Run(lib_egl); |
310 add_gl_library.Run(lib_gles2); | 309 add_gl_library.Run(lib_gles2); |
311 return true; | 310 return true; |
312 } | 311 } |
313 | 312 |
314 } // namespace ui | 313 } // namespace ui |
OLD | NEW |