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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
index 3a884f4401a17b95ff85f91fabad43b17e0b7f7e..57cfae7469696ca6c5f55e64929ec60ac4e90f16 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doers.cc
@@ -3322,6 +3322,17 @@ error::Error GLES2DecoderPassthroughImpl::DoPostSubBufferCHROMIUM(
GLint y,
GLint width,
GLint height) {
+ if (!surface_->SupportsPostSubBuffer()) {
+ InsertError(GL_INVALID_OPERATION,
+ "glPostSubBufferCHROMIUM is not supported for this surface.");
+ return error::kNoError;
+ }
+
+ gfx::SwapResult result = surface_->PostSubBuffer(x, y, width, height);
+ if (result == gfx::SwapResult::SWAP_FAILED) {
+ LOG(ERROR) << "Context lost because PostSubBuffer failed.";
+ }
+ // TODO(geofflang): force the context loss?
return error::kNoError;
}
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698