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

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

Issue 1781093002: Add CONTEXT_TYPE_OPENGLES2_PEPPER (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move kContextType to header Created 4 years, 9 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 (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/gles2_cmd_decoder.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h"
6 6
7 #include <limits.h> 7 #include <limits.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <stdio.h> 10 #include <stdio.h>
(...skipping 3219 matching lines...) Expand 10 before | Expand all | Expand 10 after
3230 if (!draw_buffers_explicitly_enabled_) 3230 if (!draw_buffers_explicitly_enabled_)
3231 resources.MaxDrawBuffers = 1; 3231 resources.MaxDrawBuffers = 1;
3232 resources.EXT_shader_texture_lod = shader_texture_lod_explicitly_enabled_; 3232 resources.EXT_shader_texture_lod = shader_texture_lod_explicitly_enabled_;
3233 resources.NV_draw_buffers = 3233 resources.NV_draw_buffers =
3234 draw_buffers_explicitly_enabled_ && features().nv_draw_buffers; 3234 draw_buffers_explicitly_enabled_ && features().nv_draw_buffers;
3235 break; 3235 break;
3236 case CONTEXT_TYPE_WEBGL2: 3236 case CONTEXT_TYPE_WEBGL2:
3237 shader_spec = SH_WEBGL2_SPEC; 3237 shader_spec = SH_WEBGL2_SPEC;
3238 break; 3238 break;
3239 case CONTEXT_TYPE_OPENGLES2: 3239 case CONTEXT_TYPE_OPENGLES2:
3240 case CONTEXT_TYPE_OPENGLES2_PEPPER:
3240 shader_spec = SH_GLES2_SPEC; 3241 shader_spec = SH_GLES2_SPEC;
3241 resources.OES_standard_derivatives = 3242 resources.OES_standard_derivatives =
3242 features().oes_standard_derivatives ? 1 : 0; 3243 features().oes_standard_derivatives ? 1 : 0;
3243 resources.ARB_texture_rectangle = 3244 resources.ARB_texture_rectangle =
3244 features().arb_texture_rectangle ? 1 : 0; 3245 features().arb_texture_rectangle ? 1 : 0;
3245 resources.OES_EGL_image_external = 3246 resources.OES_EGL_image_external =
3246 features().oes_egl_image_external ? 1 : 0; 3247 features().oes_egl_image_external ? 1 : 0;
3247 resources.EXT_draw_buffers = 3248 resources.EXT_draw_buffers =
3248 features().ext_draw_buffers ? 1 : 0; 3249 features().ext_draw_buffers ? 1 : 0;
3249 resources.EXT_frag_depth = 3250 resources.EXT_frag_depth =
(...skipping 12709 matching lines...) Expand 10 before | Expand all | Expand 10 after
15959 } 15960 }
15960 15961
15961 // Include the auto-generated part of this file. We split this because it means 15962 // Include the auto-generated part of this file. We split this because it means
15962 // we can easily edit the non-auto generated parts right here in this file 15963 // we can easily edit the non-auto generated parts right here in this file
15963 // instead of having to edit some template or the code generator. 15964 // instead of having to edit some template or the code generator.
15964 #include "base/macros.h" 15965 #include "base/macros.h"
15965 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 15966 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
15966 15967
15967 } // namespace gles2 15968 } // namespace gles2
15968 } // namespace gpu 15969 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698