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

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: improve parameter validation and write up the extension .txt file Created 6 years, 8 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // These are used when contexts share resources. 51 // These are used when contexts share resources.
52 enum IdNamespaces { 52 enum IdNamespaces {
53 kBuffers, 53 kBuffers,
54 kFramebuffers, 54 kFramebuffers,
55 kProgramsAndShaders, 55 kProgramsAndShaders,
56 kRenderbuffers, 56 kRenderbuffers,
57 kTextures, 57 kTextures,
58 kQueries, 58 kQueries,
59 kVertexArrays, 59 kVertexArrays,
60 kPaths,
60 kNumIdNamespaces 61 kNumIdNamespaces
61 }; 62 };
62 63
63 // These numbers must not change 64 // These numbers must not change
64 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0); 65 COMPILE_ASSERT(kBuffers == 0, kBuffers_is_not_0);
65 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1); 66 COMPILE_ASSERT(kFramebuffers == 1, kFramebuffers_is_not_1);
66 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2); 67 COMPILE_ASSERT(kProgramsAndShaders == 2, kProgramsAndShaders_is_not_2);
67 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3); 68 COMPILE_ASSERT(kRenderbuffers == 3, kRenderbuffers_is_not_3);
68 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4); 69 COMPILE_ASSERT(kTextures == 4, kTextures_is_not_4);
69 70
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 CommandHeader header; 460 CommandHeader header;
460 }; 461 };
461 462
462 #pragma pack(pop) 463 #pragma pack(pop)
463 464
464 } // namespace cmd 465 } // namespace cmd
465 } // namespace gles2 466 } // namespace gles2
466 } // namespace gpu 467 } // namespace gpu
467 468
468 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_ 469 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698