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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 1394403002: Mac Overlays: Plumb through GL solid color overlay support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index a76f793820e886fb8520d23caace4808e171a19b..a7bfc3e636838f397bec337bb0cb007598758678 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -9254,6 +9254,24 @@ error::Error GLES2DecoderImpl::HandleScheduleOverlayPlaneCHROMIUM(
return error::kNoError;
}
+error::Error GLES2DecoderImpl::HandleScheduleSolidColorOverlayPlaneCHROMIUM(
+ uint32 immediate_data_size,
+ const void* cmd_data) {
+ const gles2::cmds::ScheduleSolidColorOverlayPlaneCHROMIUM& c =
+ *static_cast<const gles2::cmds::ScheduleSolidColorOverlayPlaneCHROMIUM*>(
+ cmd_data);
+ if (!surface_->ScheduleSolidColorOverlayPlane(
+ c.plane_z_order,
+ gfx::Rect(c.bounds_x, c.bounds_y, c.bounds_width, c.bounds_height),
+ c.red, c.green, c.blue, c.alpha)) {
+ LOCAL_SET_GL_ERROR(GL_INVALID_OPERATION,
+ "glScheduleSolidColorOverlayPlaneCHROMIUM",
+ "failed to schedule overlay");
+ }
+ return error::kNoError;
+}
+
+
error::Error GLES2DecoderImpl::GetAttribLocationHelper(
GLuint client_id, uint32 location_shm_id, uint32 location_shm_offset,
const std::string& name_str) {

Powered by Google App Engine
This is Rietveld 408576698