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

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

Issue 612093008: gpu: Rename Capabilities::map_image to Capabilities::image. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: should only be a rename Created 6 years, 2 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.cc ('k') | no next file » | 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/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 <list> 10 #include <list>
(...skipping 2738 matching lines...) Expand 10 before | Expand all | Expand 10 after
2749 caps.discard_framebuffer = 2749 caps.discard_framebuffer =
2750 feature_info_->feature_flags().ext_discard_framebuffer; 2750 feature_info_->feature_flags().ext_discard_framebuffer;
2751 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; 2751 caps.sync_query = feature_info_->feature_flags().chromium_sync_query;
2752 2752
2753 #if defined(OS_MACOSX) 2753 #if defined(OS_MACOSX)
2754 // This is unconditionally true on mac, no need to test for it at runtime. 2754 // This is unconditionally true on mac, no need to test for it at runtime.
2755 caps.iosurface = true; 2755 caps.iosurface = true;
2756 #endif 2756 #endif
2757 2757
2758 caps.post_sub_buffer = supports_post_sub_buffer_; 2758 caps.post_sub_buffer = supports_post_sub_buffer_;
2759 caps.map_image = true; 2759 caps.image = true;
2760 2760
2761 return caps; 2761 return caps;
2762 } 2762 }
2763 2763
2764 void GLES2DecoderImpl::UpdateCapabilities() { 2764 void GLES2DecoderImpl::UpdateCapabilities() {
2765 util_.set_num_compressed_texture_formats( 2765 util_.set_num_compressed_texture_formats(
2766 validators_->compressed_texture_format.GetValues().size()); 2766 validators_->compressed_texture_format.GetValues().size());
2767 util_.set_num_shader_binary_formats( 2767 util_.set_num_shader_binary_formats(
2768 validators_->shader_binary_format.GetValues().size()); 2768 validators_->shader_binary_format.GetValues().size());
2769 } 2769 }
(...skipping 8514 matching lines...) Expand 10 before | Expand all | Expand 10 after
11284 } 11284 }
11285 } 11285 }
11286 11286
11287 // Include the auto-generated part of this file. We split this because it means 11287 // Include the auto-generated part of this file. We split this because it means
11288 // we can easily edit the non-auto generated parts right here in this file 11288 // we can easily edit the non-auto generated parts right here in this file
11289 // instead of having to edit some template or the code generator. 11289 // instead of having to edit some template or the code generator.
11290 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 11290 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
11291 11291
11292 } // namespace gles2 11292 } // namespace gles2
11293 } // namespace gpu 11293 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/capabilities.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698