Commit 94508bff authored by Kai Ninomiya's avatar Kai Ninomiya Committed by Commit Bot

Fix formatting/style nits in command buffer code

Bug: none
Cq-Include-Trybots: luci.chromium.try:android_optional_gpu_tests_rel;luci.chromium.try:linux_optional_gpu_tests_rel;luci.chromium.try:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
Change-Id: I2a125825faf342373faa4b957788c6e90692a71b
Reviewed-on: https://chromium-review.googlesource.com/996801Reviewed-by: default avatarZhenyao Mo <zmo@chromium.org>
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548310}
parent 7a8765a7
......@@ -534,25 +534,25 @@ int GLES2Util::ElementsPerGroup(int format, int type) {
case GL_UNSIGNED_INT_10F_11F_11F_REV:
case GL_UNSIGNED_INT_5_9_9_9_REV:
case GL_FLOAT_32_UNSIGNED_INT_24_8_REV:
return 1;
return 1;
default:
break;
}
break;
}
switch (format) {
switch (format) {
case GL_RGB:
case GL_RGB_INTEGER:
case GL_SRGB_EXT:
return 3;
return 3;
case GL_LUMINANCE_ALPHA:
case GL_RG_EXT:
case GL_RG_INTEGER:
return 2;
return 2;
case GL_RGBA:
case GL_RGBA_INTEGER:
case GL_BGRA_EXT:
case GL_SRGB_ALPHA_EXT:
return 4;
return 4;
case GL_ALPHA:
case GL_LUMINANCE:
case GL_DEPTH_COMPONENT:
......@@ -563,9 +563,9 @@ int GLES2Util::ElementsPerGroup(int format, int type) {
case GL_DEPTH_STENCIL_OES:
case GL_RED_EXT:
case GL_RED_INTEGER:
return 1;
return 1;
default:
return 0;
return 0;
}
}
......
......@@ -872,8 +872,8 @@ bool Framebuffer::HasAlphaMRT() const {
const Attachment* attachment = GetAttachment(draw_buffers_[i]);
if (!attachment)
continue;
if ((GLES2Util::GetChannelsForFormat(
attachment->internal_format()) & 0x0008) != 0)
if ((GLES2Util::GetChannelsForFormat(attachment->internal_format()) &
GLES2Util::kAlpha) != 0)
return true;
}
}
......
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