| 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; } |
| 261 gfx::BufferFormat GetBufferFormat() const override { | 262 gfx::BufferFormat GetBufferFormat() const override { |
| 262 return gfx::BufferFormat::BGRA_8888; | 263 return gfx::BufferFormat::BGRA_8888; |
| 263 } | 264 } |
| 264 gfx::Size GetBufferSize() const override { return gfx::Size(); } | 265 gfx::Size GetBufferSize() const override { return gfx::Size(); } |
| 265 | 266 |
| 266 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 267 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 267 int plane_z_order, | 268 int plane_z_order, |
| 268 gfx::OverlayTransform plane_transform, | 269 gfx::OverlayTransform plane_transform, |
| 269 const gfx::Rect& display_bounds, | 270 const gfx::Rect& display_bounds, |
| 270 const gfx::RectF& crop_rect) override { | 271 const gfx::RectF& crop_rect) override { |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 return false; | 305 return false; |
| 305 } | 306 } |
| 306 | 307 |
| 307 set_gl_get_proc_address.Run(gl_proc); | 308 set_gl_get_proc_address.Run(gl_proc); |
| 308 add_gl_library.Run(lib_egl); | 309 add_gl_library.Run(lib_egl); |
| 309 add_gl_library.Run(lib_gles2); | 310 add_gl_library.Run(lib_gles2); |
| 310 return true; | 311 return true; |
| 311 } | 312 } |
| 312 | 313 |
| 313 } // namespace ui | 314 } // namespace ui |
| OLD | NEW |