Commit 2161fb90 authored by Xu Xing's avatar Xu Xing Committed by Commit Bot

Fix missing mipmap_state_ in move semantics

Add mipmap_state_ in move constructor and the move assignment operator.

BUG=817887

Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel
Change-Id: I460f018ec73f791bb496c0b873dd2fb68ab58128
Reviewed-on: https://chromium-review.googlesource.com/965405Reviewed-by: default avatarDavid Reveman <reveman@chromium.org>
Commit-Queue: Xing Xu <xing.xu@intel.com>
Cr-Commit-Position: refs/heads/master@{#543643}
parent e9c1596c
......@@ -67,6 +67,7 @@ ScopedRenderPassTexture::ScopedRenderPassTexture(
mipmap_ = other.mipmap_;
color_space_ = other.color_space_;
gl_id_ = other.gl_id_;
mipmap_state_ = other.mipmap_state_;
// When being moved, other will no longer hold this gl_id_.
other.gl_id_ = 0;
......@@ -81,6 +82,7 @@ ScopedRenderPassTexture& ScopedRenderPassTexture::operator=(
mipmap_ = other.mipmap_;
color_space_ = other.color_space_;
gl_id_ = other.gl_id_;
mipmap_state_ = other.mipmap_state_;
// When being moved, other will no longer hold this gl_id_.
other.gl_id_ = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment