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

Side by Side Diff: ui/gl/gl_bindings.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 Created 5 years, 6 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 #ifndef UI_GL_GL_BINDINGS_H_ 5 #ifndef UI_GL_GL_BINDINGS_H_
6 #define UI_GL_GL_BINDINGS_H_ 6 #define UI_GL_GL_BINDINGS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 // Includes the platform independent and platform dependent GL headers. 10 // Includes the platform independent and platform dependent GL headers.
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 #endif 222 #endif
223 223
224 #ifndef GL_IMG_multisampled_render_to_texture 224 #ifndef GL_IMG_multisampled_render_to_texture
225 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133 225 #define GL_RENDERBUFFER_SAMPLES_IMG 0x9133
226 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134 226 #define GL_FRAMEBUFFER_INCOMPLETE_MULTISAMPLE_IMG 0x9134
227 #define GL_MAX_SAMPLES_IMG 0x9135 227 #define GL_MAX_SAMPLES_IMG 0x9135
228 #define GL_TEXTURE_SAMPLES_IMG 0x9136 228 #define GL_TEXTURE_SAMPLES_IMG 0x9136
229 #endif 229 #endif
230 230
231 #ifndef GL_CHROMIUM_path_rendering 231 #ifndef GL_CHROMIUM_path_rendering
232 #define GL_CHROMIUM_path_rendering 1
232 // These match the corresponding values in NV_path_rendering 233 // These match the corresponding values in NV_path_rendering
233 // extension, eg tokens with CHROMIUM replaced with NV. 234 // extension, eg tokens with CHROMIUM replaced with NV.
234 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6 235 #define GL_PATH_MODELVIEW_MATRIX_CHROMIUM 0x0BA6
235 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7 236 #define GL_PATH_PROJECTION_MATRIX_CHROMIUM 0x0BA7
236 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700 237 #define GL_PATH_MODELVIEW_CHROMIUM 0x1700
237 #define GL_PATH_PROJECTION_CHROMIUM 0x1701 238 #define GL_PATH_PROJECTION_CHROMIUM 0x1701
239 #define GL_FLAT_CHROMIUM 0x1D00
240 #define GL_CLOSE_PATH_CHROMIUM 0x00
241 #define GL_MOVE_TO_CHROMIUM 0x02
242 #define GL_LINE_TO_CHROMIUM 0x04
243 #define GL_QUADRATIC_CURVE_TO_CHROMIUM 0x0A
244 #define GL_CUBIC_CURVE_TO_CHROMIUM 0x0C
245 #define GL_CONIC_CURVE_TO_CHROMIUM 0x1A
246 #define GL_PATH_STROKE_WIDTH_CHROMIUM 0x9075
247 #define GL_PATH_END_CAPS_CHROMIUM 0x9076
248 #define GL_PATH_JOIN_STYLE_CHROMIUM 0x9079
249 #define GL_PATH_MITER_LIMIT_CHROMIUM 0x907a
250 #define GL_PATH_STROKE_BOUND_CHROMIUM 0x9086
251 #define GL_COUNT_UP_CHROMIUM 0x9088
252 #define GL_COUNT_DOWN_CHROMIUM 0x9089
253 #define GL_CONVEX_HULL_CHROMIUM 0x908B
254 #define GL_BOUNDING_BOX_CHROMIUM 0x908D
255 #define GL_SQUARE_CHROMIUM 0x90a3
256 #define GL_ROUND_CHROMIUM 0x90a4
257 #define GL_BEVEL_CHROMIUM 0x90a6
258 #define GL_MITER_REVERT_CHROMIUM 0x90a7
259 #define GL_PATH_STENCIL_FUNC_CHROMIUM 0x90B7
260 #define GL_PATH_STENCIL_REF_CHROMIUM 0x90B8
261 #define GL_PATH_STENCIL_VALUE_MASK_CHROMIUM 0x90B9
238 #endif 262 #endif
239 263
240 #ifndef GL_KHR_blend_equation_advanced 264 #ifndef GL_KHR_blend_equation_advanced
241 #define GL_KHR_blend_equation_advanced 1 265 #define GL_KHR_blend_equation_advanced 1
242 #define GL_COLORBURN_KHR 0x929A 266 #define GL_COLORBURN_KHR 0x929A
243 #define GL_COLORDODGE_KHR 0x9299 267 #define GL_COLORDODGE_KHR 0x9299
244 #define GL_DARKEN_KHR 0x9297 268 #define GL_DARKEN_KHR 0x9297
245 #define GL_DIFFERENCE_KHR 0x929E 269 #define GL_DIFFERENCE_KHR 0x929E
246 #define GL_EXCLUSION_KHR 0x92A0 270 #define GL_EXCLUSION_KHR 0x92A0
247 #define GL_HARDLIGHT_KHR 0x929B 271 #define GL_HARDLIGHT_KHR 0x929B
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
436 #elif defined(OS_ANDROID) 460 #elif defined(OS_ANDROID)
437 461
438 GL_EXPORT extern EGLApi* g_current_egl_context; 462 GL_EXPORT extern EGLApi* g_current_egl_context;
439 GL_EXPORT extern DriverEGL g_driver_egl; 463 GL_EXPORT extern DriverEGL g_driver_egl;
440 464
441 #endif 465 #endif
442 466
443 } // namespace gfx 467 } // namespace gfx
444 468
445 #endif // UI_GL_GL_BINDINGS_H_ 469 #endif // UI_GL_GL_BINDINGS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698