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

Side by Side Diff: gpu/command_buffer/service/feature_info.cc

Issue 2296433002: Add NV12 buffer scanout support from exo to ozone. (Closed)
Patch Set: s/NV21/NV12 Created 4 years, 3 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 | « components/exo/wayland/server.cc ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "gpu/command_buffer/service/feature_info.h" 5 #include "gpu/command_buffer/service/feature_info.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1004 validators_.texture_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); 1004 validators_.texture_target.AddValue(GL_TEXTURE_RECTANGLE_ARB);
1005 validators_.get_tex_param_target.AddValue(GL_TEXTURE_RECTANGLE_ARB); 1005 validators_.get_tex_param_target.AddValue(GL_TEXTURE_RECTANGLE_ARB);
1006 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_RECTANGLE_ARB); 1006 validators_.g_l_state.AddValue(GL_TEXTURE_BINDING_RECTANGLE_ARB);
1007 } 1007 }
1008 1008
1009 #if defined(OS_MACOSX) 1009 #if defined(OS_MACOSX)
1010 if (gl::GetGLImplementation() != gl::kGLImplementationOSMesaGL) { 1010 if (gl::GetGLImplementation() != gl::kGLImplementationOSMesaGL) {
1011 AddExtensionString("GL_CHROMIUM_ycbcr_420v_image"); 1011 AddExtensionString("GL_CHROMIUM_ycbcr_420v_image");
1012 feature_flags_.chromium_image_ycbcr_420v = true; 1012 feature_flags_.chromium_image_ycbcr_420v = true;
1013 } 1013 }
1014
1015 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARM_FAMILY)
1016 // TODO(dcastagna): Determine this feature at runtime querying minigbm.
no sievers 2016/08/30 20:12:04 putting a bug number would be even better
Daniele Castagna 2016/09/12 22:14:58 Done.
1017 feature_flags_.chromium_image_ycbcr_420v = true;
reveman 2016/08/30 21:10:54 drive-by: are we missing AddExtensionString("GL_CH
Daniele Castagna 2016/09/12 22:14:58 Done.
1014 #endif 1018 #endif
1015 1019
1016 if (extensions.Contains("GL_APPLE_ycbcr_422")) { 1020 if (extensions.Contains("GL_APPLE_ycbcr_422")) {
1017 AddExtensionString("GL_CHROMIUM_ycbcr_422_image"); 1021 AddExtensionString("GL_CHROMIUM_ycbcr_422_image");
1018 feature_flags_.chromium_image_ycbcr_422 = true; 1022 feature_flags_.chromium_image_ycbcr_422 = true;
1019 } 1023 }
1020 1024
1021 // TODO(gman): Add support for these extensions. 1025 // TODO(gman): Add support for these extensions.
1022 // GL_OES_depth32 1026 // GL_OES_depth32
1023 1027
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 if (pos == std::string::npos) { 1468 if (pos == std::string::npos) {
1465 extensions_ += (extensions_.empty() ? "" : " ") + str; 1469 extensions_ += (extensions_.empty() ? "" : " ") + str;
1466 } 1470 }
1467 } 1471 }
1468 1472
1469 FeatureInfo::~FeatureInfo() { 1473 FeatureInfo::~FeatureInfo() {
1470 } 1474 }
1471 1475
1472 } // namespace gles2 1476 } // namespace gles2
1473 } // namespace gpu 1477 } // namespace gpu
OLDNEW
« no previous file with comments | « components/exo/wayland/server.cc ('k') | ui/ozone/gl/gl_image_ozone_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698