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

Unified Diff: gpu/command_buffer/client/gles2_implementation.cc

Issue 6713127: Initialize a few uninitialized members in GPU classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/command_buffer/common/logging.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_implementation.cc
===================================================================
--- gpu/command_buffer/client/gles2_implementation.cc (revision 79379)
+++ gpu/command_buffer/client/gles2_implementation.cc (working copy)
@@ -1,8 +1,8 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// A class to emluate GLES2 over command buffers.
+// A class to emulate GLES2 over command buffers.
#include "../client/gles2_implementation.h"
#include <GLES2/gles2_command_buffer.h>
@@ -446,6 +446,7 @@
// Allocate space for simple GL results.
result_buffer_ = transfer_buffer;
result_shm_offset_ = 0;
+ memset(&reserved_ids_, 0, sizeof(reserved_ids_));
mapped_memory_.reset(new MappedMemoryManager(helper_));
@@ -664,7 +665,7 @@
// Insert the cmd to call glFlush
helper_->Flush();
// Flush our command buffer
- // (tell the service to execute upto the flush cmd.)
+ // (tell the service to execute up to the flush cmd.)
helper_->CommandBufferHelper::Flush();
}
@@ -672,7 +673,7 @@
// Insert the cmd to call glFinish
helper_->Finish();
// Finish our command buffer
- // (tell the service to execute upto the Finish cmd and wait for it to
+ // (tell the service to execute up to the Finish cmd and wait for it to
// execute.)
helper_->CommandBufferHelper::Finish();
}
@@ -1037,7 +1038,7 @@
height -= num_rows;
}
} else {
- // Transfer by sub rows. Beacuse GL has no maximum texture dimensions.
+ // Transfer by sub rows. Because GL has no maximum texture dimensions.
uint32 temp;
GLES2Util::ComputeImageDataSize(
1, 1, format, type, unpack_alignment_, &temp);
@@ -1255,7 +1256,7 @@
return;
}
- // glReadPixel pads the size of each row of pixels by an ammount specified by
+ // glReadPixel pads the size of each row of pixels by an amount specified by
// glPixelStorei. So, we have to take that into account both in the fact that
// the pixels returned from the ReadPixel command will include that padding
// and that when we copy the results to the user's buffer we need to not
@@ -1320,7 +1321,7 @@
height -= num_rows;
}
} else {
- // Transfer by sub rows. Beacuse GL has no maximum texture dimensions.
+ // Transfer by sub rows. Because GL has no maximum texture dimensions.
GLES2Util::ComputeImageDataSize(
1, 1, format, type, pack_alignment_, &temp_size);
GLsizeiptr element_size = temp_size;
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | gpu/command_buffer/common/logging.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698