Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Side by Side Diff: ui/ozone/platform/cast/surface_factory_cast.cc

Issue 2039813002: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add format modifier IDs for EGL_EXT_image_dma_buf_import extension Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/gl/gl_image_ozone_native_pixmap_drm_unittest.cc ('k') | ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698