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

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: comment 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 2671 matching lines...) Expand 10 before | Expand all | Expand 10 after
2682 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage; 2682 caps.texture_storage = feature_info_->feature_flags().ext_texture_storage;
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 2685
2686 #if defined(OS_MACOSX) 2686 #if defined(OS_MACOSX)
2687 // This is unconditionally true on mac, no need to test for it at runtime. 2687 // This is unconditionally true on mac, no need to test for it at runtime.
2688 caps.iosurface = true; 2688 caps.iosurface = true;
2689 #endif 2689 #endif
2690 2690
2691 caps.post_sub_buffer = supports_post_sub_buffer_; 2691 caps.post_sub_buffer = supports_post_sub_buffer_;
2692 caps.map_image = !!image_manager();
no sievers 2014/04/23 23:57:29 Shouldn't we always have an ImageManager (see Cont
boliu 2014/04/24 00:04:02 I was going to ask reveman too. The condition befo
reveman 2014/04/24 00:39:11 I would like to remove this cap completely and req
boliu 2014/04/24 01:30:56 Pepper and mojo are not affected. They don't imple
2692 2693
2693 return caps; 2694 return caps;
2694 } 2695 }
2695 2696
2696 void GLES2DecoderImpl::UpdateCapabilities() { 2697 void GLES2DecoderImpl::UpdateCapabilities() {
2697 util_.set_num_compressed_texture_formats( 2698 util_.set_num_compressed_texture_formats(
2698 validators_->compressed_texture_format.GetValues().size()); 2699 validators_->compressed_texture_format.GetValues().size());
2699 util_.set_num_shader_binary_formats( 2700 util_.set_num_shader_binary_formats(
2700 validators_->shader_binary_format.GetValues().size()); 2701 validators_->shader_binary_format.GetValues().size());
2701 } 2702 }
(...skipping 8048 matching lines...) Expand 10 before | Expand all | Expand 10 after
10750 } 10751 }
10751 } 10752 }
10752 10753
10753 // Include the auto-generated part of this file. We split this because it means 10754 // Include the auto-generated part of this file. We split this because it means
10754 // we can easily edit the non-auto generated parts right here in this file 10755 // we can easily edit the non-auto generated parts right here in this file
10755 // instead of having to edit some template or the code generator. 10756 // instead of having to edit some template or the code generator.
10756 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" 10757 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h"
10757 10758
10758 } // namespace gles2 10759 } // namespace gles2
10759 } // namespace gpu 10760 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698