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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp

Issue 2389203002: reflow comments in modules/webgl (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp b/third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp
index 978dbcd569ae739efcf35025e4f310a53c0bdd12..3f0793ec3fc5b3a513b95445a11ceb02310b1d31 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp
+++ b/third_party/WebKit/Source/modules/webgl/WebGLDrawBuffers.cpp
@@ -74,7 +74,8 @@ void WebGLDrawBuffers::drawBuffersWEBGL(const Vector<GLenum>& buffers) {
"drawBuffersWEBGL", "BACK or NONE");
return;
}
- // Because the backbuffer is simulated on all current WebKit ports, we need to change BACK to COLOR_ATTACHMENT0.
+ // Because the backbuffer is simulated on all current WebKit ports, we need
+ // to change BACK to COLOR_ATTACHMENT0.
GLenum value = (bufs[0] == GL_BACK) ? GL_COLOR_ATTACHMENT0 : GL_NONE;
scoped.context()->contextGL()->DrawBuffersEXT(1, &value);
scoped.context()->setBackDrawBuffer(bufs[0]);
@@ -168,8 +169,8 @@ bool WebGLDrawBuffers::satisfiesWebGLRequirements(
GL_TEXTURE_2D, 0, 0);
}
if (supportsDepthStencil) {
- // For ES 2.0 contexts DEPTH_STENCIL is not available natively, so we emulate it
- // at the command buffer level for WebGL contexts.
+ // For ES 2.0 contexts DEPTH_STENCIL is not available natively, so we
+ // emulate it at the command buffer level for WebGL contexts.
gl->FramebufferTexture2D(GL_FRAMEBUFFER, GL_DEPTH_STENCIL_ATTACHMENT,
GL_TEXTURE_2D, depthStencil, 0);
if (gl->CheckFramebufferStatus(GL_FRAMEBUFFER) !=

Powered by Google App Engine
This is Rietveld 408576698