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

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

Issue 822713002: Update from https://crrev.com/309415 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years 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_clear_framebuffer.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc b/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc
index 765dcb9e3d0b32f529041c2215288e5089a9f172..45eeb80c543a9768783b66b0193b766c0e941475 100644
--- a/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc
+++ b/gpu/command_buffer/service/gles2_cmd_clear_framebuffer.cc
@@ -68,9 +68,9 @@ ClearFramebufferResourceManager::~ClearFramebufferResourceManager() {
void ClearFramebufferResourceManager::Initialize(
const gles2::GLES2Decoder* decoder) {
- COMPILE_ASSERT(
+ static_assert(
kVertexPositionAttrib == 0u,
- Position_attribs_must_be_0);
+ "kVertexPositionAttrib must be 0");
DCHECK(!buffer_id_);
glGenBuffersARB(1, &buffer_id_);

Powered by Google App Engine
This is Rietveld 408576698