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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h

Issue 1925663002: command_buffer: Defer restoring of FBO bindings when changing virtual contexts Base URL: https://chromium.googlesource.com/chromium/src.git@lazy-bindframebuffer-03-copy-texture-chromium-instantiation
Patch Set: rework Created 4 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 side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
index 9d630fb7dd7f8433fc4144cb139b66e0ef8efcc6..a98ea65f5283033917649b6766372291feed2e33 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_autogen.h
@@ -509,7 +509,7 @@ error::Error GLES2DecoderImpl::HandleColorMask(uint32_t immediate_data_size,
state_.color_mask_green = green;
state_.color_mask_blue = blue;
state_.color_mask_alpha = alpha;
- framebuffer_state_.clear_state_dirty = true;
+ framebuffer_state_.set_draw_framebuffer_clear_state_dirty(true);
}
return error::kNoError;
}
@@ -947,7 +947,7 @@ error::Error GLES2DecoderImpl::HandleDepthMask(uint32_t immediate_data_size,
GLboolean flag = static_cast<GLboolean>(c.flag);
if (state_.depth_mask != flag) {
state_.depth_mask = flag;
- framebuffer_state_.clear_state_dirty = true;
+ framebuffer_state_.set_draw_framebuffer_clear_state_dirty(true);
}
return error::kNoError;
}
@@ -2669,7 +2669,7 @@ error::Error GLES2DecoderImpl::HandleStencilMask(uint32_t immediate_data_size,
state_.stencil_back_writemask != mask) {
state_.stencil_front_writemask = mask;
state_.stencil_back_writemask = mask;
- framebuffer_state_.clear_state_dirty = true;
+ framebuffer_state_.set_draw_framebuffer_clear_state_dirty(true);
}
return error::kNoError;
}
@@ -2700,7 +2700,7 @@ error::Error GLES2DecoderImpl::HandleStencilMaskSeparate(
if (face == GL_BACK || face == GL_FRONT_AND_BACK) {
state_.stencil_back_writemask = mask;
}
- framebuffer_state_.clear_state_dirty = true;
+ framebuffer_state_.set_draw_framebuffer_clear_state_dirty(true);
}
return error::kNoError;
}
@@ -5048,7 +5048,7 @@ bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
state_.enable_flags.depth_test = enabled;
if (state_.enable_flags.cached_depth_test != enabled ||
state_.ignore_cached_state) {
- framebuffer_state_.clear_state_dirty = true;
+ framebuffer_state_.set_draw_framebuffer_clear_state_dirty(true);
}
return false;
case GL_DITHER:
@@ -5095,7 +5095,7 @@ bool GLES2DecoderImpl::SetCapabilityState(GLenum cap, bool enabled) {
state_.enable_flags.stencil_test = enabled;
if (state_.enable_flags.cached_stencil_test != enabled ||
state_.ignore_cached_state) {
- framebuffer_state_.clear_state_dirty = true;
+ framebuffer_state_.set_draw_framebuffer_clear_state_dirty(true);
}
return false;
case GL_RASTERIZER_DISCARD:

Powered by Google App Engine
This is Rietveld 408576698