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

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

Issue 2680423002: Introducing 2 usages for SwiftShader (Closed)
Patch Set: Added missing change to GpuDataManagerImplPrivate Created 3 years, 10 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 3097 matching lines...) Expand 10 before | Expand all | Expand 10 after
3108 GetGLContext()->CreateGPUTimingClient()->ForceTimeElapsedQuery(); 3108 GetGLContext()->CreateGPUTimingClient()->ForceTimeElapsedQuery();
3109 } 3109 }
3110 3110
3111 // Save the loseContextWhenOutOfMemory context creation attribute. 3111 // Save the loseContextWhenOutOfMemory context creation attribute.
3112 lose_context_when_out_of_memory_ = 3112 lose_context_when_out_of_memory_ =
3113 attrib_helper.lose_context_when_out_of_memory; 3113 attrib_helper.lose_context_when_out_of_memory;
3114 3114
3115 // If the failIfMajorPerformanceCaveat context creation attribute was true 3115 // If the failIfMajorPerformanceCaveat context creation attribute was true
3116 // and we are using a software renderer, fail. 3116 // and we are using a software renderer, fail.
3117 if (attrib_helper.fail_if_major_perf_caveat && 3117 if (attrib_helper.fail_if_major_perf_caveat &&
3118 feature_info_->feature_flags().is_swiftshader) { 3118 feature_info_->feature_flags().is_swiftshader_for_webgl) {
3119 group_ = NULL; // Must not destroy ContextGroup if it is not initialized. 3119 group_ = NULL; // Must not destroy ContextGroup if it is not initialized.
3120 Destroy(true); 3120 Destroy(true);
3121 return false; 3121 return false;
3122 } 3122 }
3123 3123
3124 if (!group_->Initialize(this, attrib_helper.context_type, 3124 if (!group_->Initialize(this, attrib_helper.context_type,
3125 disallowed_features)) { 3125 disallowed_features)) {
3126 group_ = NULL; // Must not destroy ContextGroup if it is not initialized. 3126 group_ = NULL; // Must not destroy ContextGroup if it is not initialized.
3127 Destroy(true); 3127 Destroy(true);
3128 return false; 3128 return false;
(...skipping 16117 matching lines...) Expand 10 before | Expand all | Expand 10 after
19246 } 19246 }
19247 19247
19248 // Include the auto-generated part of this file. We split this because it means 19248 // Include the auto-generated part of this file. We split this because it means
19249 // we can easily edit the non-auto generated parts right here in this file 19249 // we can easily edit the non-auto generated parts right here in this file
19250 // instead of having to edit some template or the code generator. 19250 // instead of having to edit some template or the code generator.
19251 #include "base/macros.h" 19251 #include "base/macros.h"
19252 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 19252 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
19253 19253
19254 } // namespace gles2 19254 } // namespace gles2
19255 } // namespace gpu 19255 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698