Chromium Code Reviews| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 247 gfx::BufferUsage usage) { | 247 gfx::BufferUsage usage) { |
| 248 class CastPixmap : public NativePixmap { | 248 class CastPixmap : public NativePixmap { |
| 249 public: | 249 public: |
| 250 CastPixmap(SurfaceFactoryCast* parent) : parent_(parent) {} | 250 CastPixmap(SurfaceFactoryCast* parent) : parent_(parent) {} |
| 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 GetDmaBufFdNum() const override { return 0; }; | |
|
dnicoara
2016/06/09 01:17:02
nit: Last semicolon isn't needed.
Daniele Castagna
2016/06/09 01:27:58
Done.
| |
| 257 int GetDmaBufFd(size_t plane) const override { return -1; } | 258 int GetDmaBufFd(size_t plane) const override { return -1; } |
| 258 int GetDmaBufPitch(size_t plane) const override { return 0; } | 259 int GetDmaBufPitch(size_t plane) const override { return 0; } |
| 259 int GetDmaBufOffset(size_t plane) const override { return 0; } | 260 int GetDmaBufOffset(size_t plane) const override { return 0; } |
| 260 gfx::BufferFormat GetBufferFormat() const override { | 261 gfx::BufferFormat GetBufferFormat() const override { |
| 261 return gfx::BufferFormat::BGRA_8888; | 262 return gfx::BufferFormat::BGRA_8888; |
| 262 } | 263 } |
| 263 gfx::Size GetBufferSize() const override { return gfx::Size(); } | 264 gfx::Size GetBufferSize() const override { return gfx::Size(); } |
| 264 | 265 |
| 265 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, | 266 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, |
| 266 int plane_z_order, | 267 int plane_z_order, |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 303 return false; | 304 return false; |
| 304 } | 305 } |
| 305 | 306 |
| 306 set_gl_get_proc_address.Run(gl_proc); | 307 set_gl_get_proc_address.Run(gl_proc); |
| 307 add_gl_library.Run(lib_egl); | 308 add_gl_library.Run(lib_egl); |
| 308 add_gl_library.Run(lib_gles2); | 309 add_gl_library.Run(lib_gles2); |
| 309 return true; | 310 return true; |
| 310 } | 311 } |
| 311 | 312 |
| 312 } // namespace ui | 313 } // namespace ui |
| OLD | NEW |