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

Side by Side Diff: gpu/command_buffer/common/gles2_cmd_format.h

Issue 169403005: command_buffer: Implement path rendering functions for CHROMIUM_path_rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nv-pr-02-texgen
Patch Set: rebase and cleanup ids Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file defines the GLES2 command buffer commands. 5 // This file defines the GLES2 command buffer commands.
6 6
7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 7 #ifndef GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 8 #define GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
9 9
10 10
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 kBuffers, 55 kBuffers,
56 kFramebuffers, 56 kFramebuffers,
57 kProgramsAndShaders, 57 kProgramsAndShaders,
58 kRenderbuffers, 58 kRenderbuffers,
59 kTextures, 59 kTextures,
60 kQueries, 60 kQueries,
61 kVertexArrays, 61 kVertexArrays,
62 kNumIdNamespaces 62 kNumIdNamespaces
63 }; 63 };
64 64
65 enum RangeIdNamespaces { kPaths, kNumRangeIdNamespaces };
66
65 // These numbers must not change 67 // These numbers must not change
66 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0); 68 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0);
67 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1); 69 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1);
68 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2); 70 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2);
69 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3); 71 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3);
70 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4); 72 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4);
73 COMPILE_ASSERT(kPaths == 0, kPaths_is_not_0);
71 74
72 } // namespace id_namespaces 75 } // namespace id_namespaces
73 76
74 // Used for some glGetXXX commands that return a result through a pointer. We 77 // Used for some glGetXXX commands that return a result through a pointer. We
75 // need to know if the command succeeded or not and the size of the result. If 78 // need to know if the command succeeded or not and the size of the result. If
76 // the command failed its result size will 0. 79 // the command failed its result size will 0.
77 template <typename T> 80 template <typename T>
78 struct SizedResult { 81 struct SizedResult {
79 typedef T Type; 82 typedef T Type;
80 83
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 OffsetOf_CreateAndConsumeTextureCHROMIUMImmediate_client_id_not_8); 270 OffsetOf_CreateAndConsumeTextureCHROMIUMImmediate_client_id_not_8);
268 271
269 272
270 #pragma pack(pop) 273 #pragma pack(pop)
271 274
272 } // namespace cmd 275 } // namespace cmd
273 } // namespace gles2 276 } // namespace gles2
274 } // namespace gpu 277 } // namespace gpu
275 278
276 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 279 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698