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

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

Issue 2632903002: gpu: Pepper3DImageChromium support on ChromeOS. (Closed)
Patch Set: remove ifdef and add todo Created 3 years, 11 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 3109 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 should_use_native_gmb_for_backbuffer_ = 3120 should_use_native_gmb_for_backbuffer_ =
3121 attrib_helper.should_use_native_gmb_for_backbuffer; 3121 attrib_helper.should_use_native_gmb_for_backbuffer;
3122 if (should_use_native_gmb_for_backbuffer_) { 3122 if (should_use_native_gmb_for_backbuffer_) {
3123 gpu::ImageFactory* image_factory = group_->image_factory(); 3123 gpu::ImageFactory* image_factory = group_->image_factory();
3124 bool supported = false; 3124 bool supported = false;
3125 if (image_factory) { 3125 if (image_factory) {
3126 switch (image_factory->RequiredTextureType()) { 3126 switch (image_factory->RequiredTextureType()) {
3127 case GL_TEXTURE_RECTANGLE_ARB: 3127 case GL_TEXTURE_RECTANGLE_ARB:
3128 supported = feature_info_->feature_flags().arb_texture_rectangle; 3128 supported = feature_info_->feature_flags().arb_texture_rectangle;
3129 break; 3129 break;
3130 case GL_TEXTURE_EXTERNAL_OES:
3131 supported = feature_info_->feature_flags().oes_egl_image_external;
3132 break;
3130 case GL_TEXTURE_2D: 3133 case GL_TEXTURE_2D:
3131 supported = true; 3134 supported = true;
3132 break; 3135 break;
3133 default: 3136 default:
3134 break; 3137 break;
3135 } 3138 }
3136 } 3139 }
3137 3140
3138 if (!supported) { 3141 if (!supported) {
3139 Destroy(true); 3142 Destroy(true);
(...skipping 15993 matching lines...) Expand 10 before | Expand all | Expand 10 after
19133 } 19136 }
19134 19137
19135 // Include the auto-generated part of this file. We split this because it means 19138 // Include the auto-generated part of this file. We split this because it means
19136 // we can easily edit the non-auto generated parts right here in this file 19139 // we can easily edit the non-auto generated parts right here in this file
19137 // instead of having to edit some template or the code generator. 19140 // instead of having to edit some template or the code generator.
19138 #include "base/macros.h" 19141 #include "base/macros.h"
19139 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19142 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19140 19143
19141 } // namespace gles2 19144 } // namespace gles2
19142 } // namespace gpu 19145 } // namespace gpu
OLDNEW
« no previous file with comments | « content/renderer/pepper/ppb_graphics_3d_impl.cc ('k') | gpu/ipc/service/gpu_memory_buffer_factory_ozone_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698