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

Side by Side Diff: cc/output/geometry_binding.cc

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes 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
« no previous file with comments | « cc/output/geometry_binding.h ('k') | cc/output/gl_frame_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "cc/output/geometry_binding.h" 5 #include "cc/output/geometry_binding.h"
6 6
7 #include <stdint.h>
8
7 #include "gpu/command_buffer/client/gles2_interface.h" 9 #include "gpu/command_buffer/client/gles2_interface.h"
8 #include "ui/gfx/geometry/rect_f.h" 10 #include "ui/gfx/geometry/rect_f.h"
9 11
10 namespace cc { 12 namespace cc {
11 13
12 void SetupGLContext(gpu::gles2::GLES2Interface* gl, 14 void SetupGLContext(gpu::gles2::GLES2Interface* gl,
13 GLuint quad_elements_vbo, 15 GLuint quad_elements_vbo,
14 GLuint quad_vertices_vbo) { 16 GLuint quad_vertices_vbo) {
15 gl->BindBuffer(GL_ELEMENT_ARRAY_BUFFER, quad_elements_vbo); 17 gl->BindBuffer(GL_ELEMENT_ARRAY_BUFFER, quad_elements_vbo);
16 18
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 v0 = vert0; 51 v0 = vert0;
50 v1 = vert1; 52 v1 = vert1;
51 v2 = vert2; 53 v2 = vert2;
52 v3 = vert3; 54 v3 = vert3;
53 } 55 }
54 56
55 GeometryBindingQuadIndex::GeometryBindingQuadIndex() { 57 GeometryBindingQuadIndex::GeometryBindingQuadIndex() {
56 memset(data, 0x0, sizeof(data)); 58 memset(data, 0x0, sizeof(data));
57 } 59 }
58 60
59 GeometryBindingQuadIndex::GeometryBindingQuadIndex(uint16 index0, 61 GeometryBindingQuadIndex::GeometryBindingQuadIndex(uint16_t index0,
60 uint16 index1, 62 uint16_t index1,
61 uint16 index2, 63 uint16_t index2,
62 uint16 index3, 64 uint16_t index3,
63 uint16 index4, 65 uint16_t index4,
64 uint16 index5) { 66 uint16_t index5) {
65 data[0] = index0; 67 data[0] = index0;
66 data[1] = index1; 68 data[1] = index1;
67 data[2] = index2; 69 data[2] = index2;
68 data[3] = index3; 70 data[3] = index3;
69 data[4] = index4; 71 data[4] = index4;
70 data[5] = index5; 72 data[5] = index5;
71 } 73 }
72 74
73 } // namespace cc 75 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/geometry_binding.h ('k') | cc/output/gl_frame_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698