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

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

Issue 1542513002: Switch to standard integer types in gpu/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 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
« no previous file with comments | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/client/transfer_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/share_group.cc
diff --git a/gpu/command_buffer/client/share_group.cc b/gpu/command_buffer/client/share_group.cc
index fb5b886b0526a9c60ba9b3d79676adafb5e97c08..2ba790a1853504a3bea676a6c4ebdd2fa7ed20f3 100644
--- a/gpu/command_buffer/client/share_group.cc
+++ b/gpu/command_buffer/client/share_group.cc
@@ -4,9 +4,10 @@
#include "gpu/command_buffer/client/share_group.h"
+#include <stdint.h>
+
#include <stack>
#include <vector>
-#include "base/basictypes.h"
#include "base/logging.h"
#include "base/synchronization/lock.h"
#include "gpu/command_buffer/client/gles2_cmd_helper.h"
@@ -234,13 +235,13 @@ class StrictIdHandler : public IdHandlerInterface {
enum IdState { kIdFree, kIdPendingFree, kIdInUse };
void CollectPendingFreeIds(GLES2Implementation* gl_impl) {
- uint32 flush_generation = gl_impl->helper()->flush_generation();
+ uint32_t flush_generation = gl_impl->helper()->flush_generation();
ShareGroupContextData::IdHandlerData* ctxt_data =
gl_impl->share_group_context_data()->id_handler_data(id_namespace_);
if (ctxt_data->flush_generation_ != flush_generation) {
ctxt_data->flush_generation_ = flush_generation;
- for (uint32 ii = 0; ii < ctxt_data->freed_ids_.size(); ++ii) {
+ for (uint32_t ii = 0; ii < ctxt_data->freed_ids_.size(); ++ii) {
const GLuint id = ctxt_data->freed_ids_[ii];
DCHECK(id_states_[id - 1] == kIdPendingFree);
id_states_[id - 1] = kIdFree;
@@ -253,8 +254,8 @@ class StrictIdHandler : public IdHandlerInterface {
int id_namespace_;
base::Lock lock_;
- std::vector<uint8> id_states_;
- std::stack<uint32> free_ids_;
+ std::vector<uint8_t> id_states_;
+ std::stack<uint32_t> free_ids_;
};
// An id handler for ids that are never reused.
« no previous file with comments | « gpu/command_buffer/client/share_group.h ('k') | gpu/command_buffer/client/transfer_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698