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

Side by Side Diff: gpu/command_buffer/service/valuebuffer_manager.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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stdint.h>
6
5 #include "gpu/command_buffer/service/gl_utils.h" 7 #include "gpu/command_buffer/service/gl_utils.h"
6 #include "gpu/command_buffer/service/program_manager.h" 8 #include "gpu/command_buffer/service/program_manager.h"
7 #include "gpu/command_buffer/service/valuebuffer_manager.h" 9 #include "gpu/command_buffer/service/valuebuffer_manager.h"
8 10
9 namespace gpu { 11 namespace gpu {
10 namespace gles2 { 12 namespace gles2 {
11 13
12 SubscriptionRefSet::Observer::~Observer() { 14 SubscriptionRefSet::Observer::~Observer() {
13 } 15 }
14 16
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 valuebuffer->MarkAsDeleted(); 154 valuebuffer->MarkAsDeleted();
153 valuebuffer_map_.erase(it); 155 valuebuffer_map_.erase(it);
154 } 156 }
155 } 157 }
156 158
157 void ValuebufferManager::UpdateValuebufferState(Valuebuffer* valuebuffer) { 159 void ValuebufferManager::UpdateValuebufferState(Valuebuffer* valuebuffer) {
158 DCHECK(valuebuffer); 160 DCHECK(valuebuffer);
159 valuebuffer->UpdateState(pending_state_map_.get()); 161 valuebuffer->UpdateState(pending_state_map_.get());
160 } 162 }
161 163
162 uint32 ValuebufferManager::ApiTypeForSubscriptionTarget(unsigned int target) { 164 uint32_t ValuebufferManager::ApiTypeForSubscriptionTarget(unsigned int target) {
163 switch (target) { 165 switch (target) {
164 case GL_MOUSE_POSITION_CHROMIUM: 166 case GL_MOUSE_POSITION_CHROMIUM:
165 return Program::kUniform2i; 167 return Program::kUniform2i;
166 } 168 }
167 NOTREACHED() << "Unhandled uniform subscription target " << target; 169 NOTREACHED() << "Unhandled uniform subscription target " << target;
168 return Program::kUniformNone; 170 return Program::kUniformNone;
169 } 171 }
170 172
171 } // namespace gles2 173 } // namespace gles2
172 } // namespace gpu 174 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/valuebuffer_manager.h ('k') | gpu/command_buffer/service/vertex_array_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698