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

Side by Side Diff: ui/ozone/platform/drm/client_native_pixmap_factory_gbm.cc

Issue 2121043002: 16 bpp video stream capture, render and WebGL usage - Realsense R200 & SR300 support. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tests: cc, skcanvas_video_renderer, wrtcrecorder... Fake capture supports Y16. Created 4 years, 2 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/drm/client_native_pixmap_factory_gbm.h" 5 #include "ui/ozone/platform/drm/client_native_pixmap_factory_gbm.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 format == gfx::BufferFormat::BGRX_8888 || 48 format == gfx::BufferFormat::BGRX_8888 ||
49 format == gfx::BufferFormat::YVU_420; 49 format == gfx::BufferFormat::YVU_420;
50 case gfx::BufferUsage::SCANOUT: 50 case gfx::BufferUsage::SCANOUT:
51 return format == gfx::BufferFormat::BGRX_8888 || 51 return format == gfx::BufferFormat::BGRX_8888 ||
52 format == gfx::BufferFormat::RGBX_8888; 52 format == gfx::BufferFormat::RGBX_8888;
53 case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE: 53 case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE:
54 case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT: { 54 case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT: {
55 #if defined(OS_CHROMEOS) 55 #if defined(OS_CHROMEOS)
56 return 56 return
57 #if defined(ARCH_CPU_X86_FAMILY) 57 #if defined(ARCH_CPU_X86_FAMILY)
58 // Currently only Intel driver (i.e. minigbm and Mesa) supports R_8. 58 // Currently only Intel driver (i.e. minigbm and Mesa) supports R_8
59 // crbug.com/356871 59 // and RG_88. crbug.com/356871
60 format == gfx::BufferFormat::R_8 || 60 format == gfx::BufferFormat::R_8 ||
61 format == gfx::BufferFormat::RG_88 ||
61 #endif 62 #endif
62 format == gfx::BufferFormat::BGRA_8888; 63 format == gfx::BufferFormat::BGRA_8888;
63 #else 64 #else
64 return false; 65 return false;
65 #endif 66 #endif
66 } 67 }
67 } 68 }
68 NOTREACHED(); 69 NOTREACHED();
69 return false; 70 return false;
70 } 71 }
(...skipping 24 matching lines...) Expand all
95 } 96 }
96 97
97 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactoryGbm); 98 DISALLOW_COPY_AND_ASSIGN(ClientNativePixmapFactoryGbm);
98 }; 99 };
99 100
100 ClientNativePixmapFactory* CreateClientNativePixmapFactoryGbm() { 101 ClientNativePixmapFactory* CreateClientNativePixmapFactoryGbm() {
101 return new ClientNativePixmapFactoryGbm(); 102 return new ClientNativePixmapFactoryGbm();
102 } 103 }
103 104
104 } // namespace ui 105 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698