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

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

Issue 2886263005: Initialize remaining passthrough command decoder caps. (Closed)
Patch Set: Created 3 years, 7 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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_passthrough.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
6 6
7 #include "base/strings/string_split.h" 7 #include "base/strings/string_split.h"
8 #include "gpu/command_buffer/service/feature_info.h" 8 #include "gpu/command_buffer/service/feature_info.h"
9 #include "gpu/command_buffer/service/gl_utils.h" 9 #include "gpu/command_buffer/service/gl_utils.h"
10 #include "ui/gl/gl_version_info.h" 10 #include "ui/gl/gl_version_info.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 caps.image_ycbcr_422 = 365 caps.image_ycbcr_422 =
366 feature_info_->feature_flags().chromium_image_ycbcr_422; 366 feature_info_->feature_flags().chromium_image_ycbcr_422;
367 caps.image_ycbcr_420v = 367 caps.image_ycbcr_420v =
368 feature_info_->feature_flags().chromium_image_ycbcr_420v; 368 feature_info_->feature_flags().chromium_image_ycbcr_420v;
369 caps.max_copy_texture_chromium_size = 369 caps.max_copy_texture_chromium_size =
370 feature_info_->workarounds().max_copy_texture_chromium_size; 370 feature_info_->workarounds().max_copy_texture_chromium_size;
371 caps.render_buffer_format_bgra8888 = 371 caps.render_buffer_format_bgra8888 =
372 feature_info_->feature_flags().ext_render_buffer_format_bgra8888; 372 feature_info_->feature_flags().ext_render_buffer_format_bgra8888;
373 caps.occlusion_query_boolean = 373 caps.occlusion_query_boolean =
374 feature_info_->feature_flags().occlusion_query_boolean; 374 feature_info_->feature_flags().occlusion_query_boolean;
375 caps.timer_queries = feature_info_->feature_flags().ext_disjoint_timer_query;
376 caps.post_sub_buffer = surface_->SupportsPostSubBuffer();
377 caps.surfaceless = !offscreen_ && surface_->IsSurfaceless();
378 caps.flips_vertically = !offscreen_ && surface_->FlipsVertically();
375 379
376 // TODO: 380 // TODO:
377 // caps.timer_queries
378 // caps.post_sub_buffer
379 // caps.commit_overlay_planes 381 // caps.commit_overlay_planes
380 // caps.surfaceless
381 // caps.is_offscreen
382 // caps.flips_vertically
383 382
384 return caps; 383 return caps;
385 } 384 }
386 385
387 void GLES2DecoderPassthroughImpl::RestoreState(const ContextState* prev_state) { 386 void GLES2DecoderPassthroughImpl::RestoreState(const ContextState* prev_state) {
388 387
389 } 388 }
390 389
391 void GLES2DecoderPassthroughImpl::RestoreActiveTexture() const {} 390 void GLES2DecoderPassthroughImpl::RestoreActiveTexture() const {}
392 391
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
908 }, /* NOLINT */ 907 }, /* NOLINT */
909 908
910 const GLES2DecoderPassthroughImpl::CommandInfo 909 const GLES2DecoderPassthroughImpl::CommandInfo
911 GLES2DecoderPassthroughImpl::command_info[] = { 910 GLES2DecoderPassthroughImpl::command_info[] = {
912 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; 911 GLES2_COMMAND_LIST(GLES2_CMD_OP)};
913 912
914 #undef GLES2_CMD_OP 913 #undef GLES2_CMD_OP
915 914
916 } // namespace gles2 915 } // namespace gles2
917 } // namespace gpu 916 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698