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

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

Issue 2055483002: gl: Add YVU_420 support to GLImageOzoneNativePixmap. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: s/Num/Count. Created 4 years, 6 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
« no previous file with comments | « ui/gl/gl_image_ozone_native_pixmap.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 GetDmaBufFdCount() const override { return 0; }
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
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
OLDNEW
« no previous file with comments | « ui/gl/gl_image_ozone_native_pixmap.cc ('k') | ui/ozone/platform/drm/gpu/gbm_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698