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

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

Issue 2713553005: Add GL_EXT_color_buffer_half_float support (Closed)
Patch Set: Fix compile error Created 3 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
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/command_buffer/service/feature_info.h » ('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/context_group.h" 5 #include "gpu/command_buffer/service/context_group.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 DisallowedFeatures adjusted_disallowed_features = disallowed_features; 43 DisallowedFeatures adjusted_disallowed_features = disallowed_features;
44 if (context_type == CONTEXT_TYPE_WEBGL1) { 44 if (context_type == CONTEXT_TYPE_WEBGL1) {
45 adjusted_disallowed_features.npot_support = true; 45 adjusted_disallowed_features.npot_support = true;
46 adjusted_disallowed_features.oes_texture_half_float_linear = true; 46 adjusted_disallowed_features.oes_texture_half_float_linear = true;
47 } 47 }
48 if (context_type == CONTEXT_TYPE_WEBGL1 || 48 if (context_type == CONTEXT_TYPE_WEBGL1 ||
49 context_type == CONTEXT_TYPE_WEBGL2) { 49 context_type == CONTEXT_TYPE_WEBGL2) {
50 adjusted_disallowed_features.chromium_color_buffer_float_rgba = true; 50 adjusted_disallowed_features.chromium_color_buffer_float_rgba = true;
51 adjusted_disallowed_features.chromium_color_buffer_float_rgb = true; 51 adjusted_disallowed_features.chromium_color_buffer_float_rgb = true;
52 adjusted_disallowed_features.ext_color_buffer_float = true; 52 adjusted_disallowed_features.ext_color_buffer_float = true;
53 adjusted_disallowed_features.ext_color_buffer_half_float = true;
53 adjusted_disallowed_features.oes_texture_float_linear = true; 54 adjusted_disallowed_features.oes_texture_float_linear = true;
54 } 55 }
55 return adjusted_disallowed_features; 56 return adjusted_disallowed_features;
56 } 57 }
57 58
58 } // namespace anonymous 59 } // namespace anonymous
59 60
60 ContextGroup::ContextGroup( 61 ContextGroup::ContextGroup(
61 const GpuPreferences& gpu_preferences, 62 const GpuPreferences& gpu_preferences,
62 const scoped_refptr<MailboxManager>& mailbox_manager, 63 const scoped_refptr<MailboxManager>& mailbox_manager,
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
628 GLuint client_id, GLuint* service_id) const { 629 GLuint client_id, GLuint* service_id) const {
629 Buffer* buffer = buffer_manager_->GetBuffer(client_id); 630 Buffer* buffer = buffer_manager_->GetBuffer(client_id);
630 if (!buffer) 631 if (!buffer)
631 return false; 632 return false;
632 *service_id = buffer->service_id(); 633 *service_id = buffer->service_id();
633 return true; 634 return true;
634 } 635 }
635 636
636 } // namespace gles2 637 } // namespace gles2
637 } // namespace gpu 638 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.h ('k') | gpu/command_buffer/service/feature_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698