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

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

Issue 1057183002: Fix a few lints found while working on crrev.com/1051503003. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More lints removed. "git cl format" reverted. Created 5 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.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 3abe199f534969cce6c0ed433f9a0d7f3c4ca10c..64d704822a39243b9b74a6f07059fdeabfaca3cf 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -9,6 +9,7 @@
#include <algorithm>
#include <list>
#include <map>
+#include <queue>
#include <stack>
#include <string>
#include <vector>
@@ -99,7 +100,7 @@ static bool PrecisionMeetsSpecForHighpFloat(GLint rangeMin,
static void GetShaderPrecisionFormatImpl(GLenum shader_type,
GLenum precision_type,
- GLint *range, GLint *precision) {
+ GLint* range, GLint* precision) {
switch (precision_type) {
case GL_LOW_INT:
case GL_MEDIUM_INT:
@@ -503,7 +504,7 @@ class BackFramebuffer {
};
struct FenceCallback {
- explicit FenceCallback()
+ FenceCallback()
: fence(gfx::GLFence::Create()) {
DCHECK(fence);
}
@@ -4302,9 +4303,9 @@ void GLES2DecoderImpl::ClearAllAttributes() const {
glBindVertexArrayOES(0);
for (uint32 i = 0; i < group_->max_vertex_attribs(); ++i) {
- if (i != 0) // Never disable attribute 0
+ if (i != 0) // Never disable attribute 0
glDisableVertexAttribArray(i);
- if(features().angle_instanced_arrays)
+ if (features().angle_instanced_arrays)
glVertexAttribDivisorANGLE(i, 0);
}
}
@@ -5675,7 +5676,6 @@ void GLES2DecoderImpl::DoRenderbufferStorageMultisampleCHROMIUM(
GLenum error =
LOCAL_PEEK_GL_ERROR("glRenderbufferStorageMultisampleCHROMIUM");
if (error == GL_NO_ERROR) {
-
if (workarounds().validate_multisample_buffer_allocation) {
if (!VerifyMultisampleRenderbufferIntegrity(
renderbuffer->service_id(), impl_format)) {
@@ -5743,7 +5743,7 @@ bool GLES2DecoderImpl::VerifyMultisampleRenderbufferIntegrity(
// These formats have been selected because they are very common or are known
// to be used by the WebGL backbuffer. If problems are observed with other
// color formats they can be added here.
- switch(format) {
+ switch (format) {
case GL_RGB:
case GL_RGB8:
case GL_RGBA:
@@ -5909,7 +5909,7 @@ void GLES2DecoderImpl::DoLinkProgram(GLuint program_id) {
// LinkProgram can be very slow. Exit command processing to allow for
// context preemption and GPU watchdog checks.
ExitCommandProcessingEarly();
-};
+}
void GLES2DecoderImpl::DoSamplerParameterfv(
GLuint sampler, GLenum pname, const GLfloat* params) {
@@ -7699,7 +7699,7 @@ error::Error GLES2DecoderImpl::HandleVertexAttribDivisorANGLE(
template <typename pixel_data_type>
static void WriteAlphaData(
- void *pixels, uint32 row_count, uint32 channel_count,
+ void* pixels, uint32 row_count, uint32 channel_count,
uint32 alpha_channel_index, uint32 unpadded_row_size,
uint32 padded_row_size, pixel_data_type alpha_value) {
DCHECK_GT(channel_count, 0U);
@@ -10212,8 +10212,7 @@ void GLES2DecoderImpl::DoSwapBuffers() {
ExitCommandProcessingEarly();
}
-void GLES2DecoderImpl::DoSwapInterval(int interval)
-{
+void GLES2DecoderImpl::DoSwapInterval(int interval) {
context_->SetSwapInterval(interval);
}
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation.cc ('k') | gpu/command_buffer/service/in_process_command_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698