Skip to content

Commit

Permalink
Passthrough Cmd decoder: Handle TEXTURE_RECTANGLE
Browse files Browse the repository at this point in the history
This is needed to make the passthrough command decoder able to be used
on Mac as IOSurfaces will be bound to rectangle textures.

BUG=757974

Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel;master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: Id02f2ba6171841a1daebb5f987354f227b4c2f6a
Reviewed-on: https://chromium-review.googlesource.com/714117
Reviewed-by: Zhenyao Mo <zmo@chromium.org>
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Cr-Commit-Position: refs/heads/master@{#508145}
  • Loading branch information
Kangz authored and Commit Bot committed Oct 11, 2017
1 parent b8c2a13 commit ba106cc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,9 @@ bool GLES2DecoderPassthroughImpl::Initialize(
feature_info_->feature_flags().nv_egl_stream_consumer_external) {
bound_textures_[GL_TEXTURE_EXTERNAL_OES].resize(num_texture_units);
}
if (feature_info_->feature_flags().arb_texture_rectangle) {
bound_textures_[GL_TEXTURE_RECTANGLE_ARB].resize(num_texture_units);
}

// Initialize the tracked buffer bindings
bound_buffers_[GL_ARRAY_BUFFER] = 0;
Expand Down

0 comments on commit ba106cc

Please sign in to comment.