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

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

Issue 235563002: gpu: Separate GpuControlService from GpuControl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: unregister Created 6 years, 8 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 | Annotate | Revision Log
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 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after
2683 caps.discard_framebuffer = 2683 caps.discard_framebuffer =
2684 feature_info_->feature_flags().ext_discard_framebuffer; 2684 feature_info_->feature_flags().ext_discard_framebuffer;
2685 caps.sync_query = feature_info_->feature_flags().chromium_sync_query; 2685 caps.sync_query = feature_info_->feature_flags().chromium_sync_query;
2686 2686
2687 #if defined(OS_MACOSX) 2687 #if defined(OS_MACOSX)
2688 // This is unconditionally true on mac, no need to test for it at runtime. 2688 // This is unconditionally true on mac, no need to test for it at runtime.
2689 caps.iosurface = true; 2689 caps.iosurface = true;
2690 #endif 2690 #endif
2691 2691
2692 caps.post_sub_buffer = supports_post_sub_buffer_; 2692 caps.post_sub_buffer = supports_post_sub_buffer_;
2693 caps.map_image = !!image_manager();
2693 2694
2694 return caps; 2695 return caps;
2695 } 2696 }
2696 2697
2697 void GLES2DecoderImpl::UpdateCapabilities() { 2698 void GLES2DecoderImpl::UpdateCapabilities() {
2698 util_.set_num_compressed_texture_formats( 2699 util_.set_num_compressed_texture_formats(
2699 validators_->compressed_texture_format.GetValues().size()); 2700 validators_->compressed_texture_format.GetValues().size());
2700 util_.set_num_shader_binary_formats( 2701 util_.set_num_shader_binary_formats(
2701 validators_->shader_binary_format.GetValues().size()); 2702 validators_->shader_binary_format.GetValues().size());
2702 } 2703 }
(...skipping 8036 matching lines...) Expand 10 before | Expand all | Expand 10 after
10739 } 10740 }
10740 } 10741 }
10741 10742
10742 // Include the auto-generated part of this file. We split this because it means 10743 // Include the auto-generated part of this file. We split this because it means
10743 // we can easily edit the non-auto generated parts right here in this file 10744 // we can easily edit the non-auto generated parts right here in this file
10744 // instead of having to edit some template or the code generator. 10745 // instead of having to edit some template or the code generator.
10745 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10746 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10746 10747
10747 } // namespace gles2 10748 } // namespace gles2
10748 } // namespace gpu 10749 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698