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

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

Issue 1280163004: gpu: workaround force_cube_map_positive_x_allocation fixes Android crash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bug about cube incomplete fbo Created 5 years, 4 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 <stdio.h> 7 #include <stdio.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <cmath> 10 #include <cmath>
(...skipping 2557 matching lines...) Expand 10 before | Expand all | Expand 10 after
2568 derivatives_explicitly_enabled_(false), 2568 derivatives_explicitly_enabled_(false),
2569 frag_depth_explicitly_enabled_(false), 2569 frag_depth_explicitly_enabled_(false),
2570 draw_buffers_explicitly_enabled_(false), 2570 draw_buffers_explicitly_enabled_(false),
2571 shader_texture_lod_explicitly_enabled_(false), 2571 shader_texture_lod_explicitly_enabled_(false),
2572 compile_shader_always_succeeds_(false), 2572 compile_shader_always_succeeds_(false),
2573 lose_context_when_out_of_memory_(false), 2573 lose_context_when_out_of_memory_(false),
2574 service_logging_(base::CommandLine::ForCurrentProcess()->HasSwitch( 2574 service_logging_(base::CommandLine::ForCurrentProcess()->HasSwitch(
2575 switches::kEnableGPUServiceLoggingGPU)), 2575 switches::kEnableGPUServiceLoggingGPU)),
2576 viewport_max_width_(0), 2576 viewport_max_width_(0),
2577 viewport_max_height_(0), 2577 viewport_max_height_(0),
2578 texture_state_(group_->feature_info() 2578 texture_state_(group_->feature_info()->workarounds()),
2579 ->workarounds()
2580 .texsubimage_faster_than_teximage),
2581 cb_command_trace_category_(TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED( 2579 cb_command_trace_category_(TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(
2582 TRACE_DISABLED_BY_DEFAULT("cb_command"))), 2580 TRACE_DISABLED_BY_DEFAULT("cb_command"))),
2583 gpu_decoder_category_(TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED( 2581 gpu_decoder_category_(TRACE_EVENT_API_GET_CATEGORY_GROUP_ENABLED(
2584 TRACE_DISABLED_BY_DEFAULT("gpu_decoder"))), 2582 TRACE_DISABLED_BY_DEFAULT("gpu_decoder"))),
2585 gpu_trace_level_(2), 2583 gpu_trace_level_(2),
2586 gpu_trace_commands_(false), 2584 gpu_trace_commands_(false),
2587 gpu_debug_commands_(false), 2585 gpu_debug_commands_(false),
2588 validation_texture_(0), 2586 validation_texture_(0),
2589 validation_fbo_multisample_(0), 2587 validation_fbo_multisample_(0),
2590 validation_fbo_(0) { 2588 validation_fbo_(0) {
(...skipping 11949 matching lines...) Expand 10 before | Expand all | Expand 10 after
14540 return error::kNoError; 14538 return error::kNoError;
14541 } 14539 }
14542 14540
14543 // Include the auto-generated part of this file. We split this because it means 14541 // Include the auto-generated part of this file. We split this because it means
14544 // we can easily edit the non-auto generated parts right here in this file 14542 // we can easily edit the non-auto generated parts right here in this file
14545 // instead of having to edit some template or the code generator. 14543 // instead of having to edit some template or the code generator.
14546 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 14544 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
14547 14545
14548 } // namespace gles2 14546 } // namespace gles2
14549 } // namespace gpu 14547 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698