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

Side by Side Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 2270 matching lines...) Expand 10 before | Expand all | Expand 10 after
2281 } 2281 }
2282 2282
2283 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { 2283 void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
2284 gles2::cmds::MatrixLoadIdentityCHROMIUM* c = 2284 gles2::cmds::MatrixLoadIdentityCHROMIUM* c =
2285 GetCmdSpace<gles2::cmds::MatrixLoadIdentityCHROMIUM>(); 2285 GetCmdSpace<gles2::cmds::MatrixLoadIdentityCHROMIUM>();
2286 if (c) { 2286 if (c) {
2287 c->Init(matrixMode); 2287 c->Init(matrixMode);
2288 } 2288 }
2289 } 2289 }
2290 2290
2291 void GenPathsCHROMIUM(GLsizei range,
2292 uint32 client_ids_shm_id,
2293 uint32 client_ids_shm_offset) {
2294 gles2::cmds::GenPathsCHROMIUM* c =
2295 GetCmdSpace<gles2::cmds::GenPathsCHROMIUM>();
2296 if (c) {
2297 c->Init(range, client_ids_shm_id, client_ids_shm_offset);
2298 }
2299 }
2300
2301 void DeletePathsCHROMIUM(GLuint path, GLsizei range) {
2302 gles2::cmds::DeletePathsCHROMIUM* c =
2303 GetCmdSpace<gles2::cmds::DeletePathsCHROMIUM>();
2304 if (c) {
2305 c->Init(path, range);
2306 }
2307 }
2308
2309 void PathCommandsCHROMIUM(GLuint path,
2310 GLsizei numCommands,
2311 uint32 commands_shm_id,
2312 uint32 commands_shm_offset,
2313 GLsizei numCoords,
2314 GLenum coordType,
2315 uint32 coords_shm_id,
2316 uint32 coords_shm_offset) {
2317 gles2::cmds::PathCommandsCHROMIUM* c =
2318 GetCmdSpace<gles2::cmds::PathCommandsCHROMIUM>();
2319 if (c) {
2320 c->Init(path,
2321 numCommands,
2322 commands_shm_id,
2323 commands_shm_offset,
2324 numCoords,
2325 coordType,
2326 coords_shm_id,
2327 coords_shm_offset);
2328 }
2329 }
2330
2331 void PathParameterfCHROMIUM(GLuint path, GLenum pname, GLfloat value) {
2332 gles2::cmds::PathParameterfCHROMIUM* c =
2333 GetCmdSpace<gles2::cmds::PathParameterfCHROMIUM>();
2334 if (c) {
2335 c->Init(path, pname, value);
2336 }
2337 }
2338
2339 void PathParameteriCHROMIUM(GLuint path, GLenum pname, GLint value) {
2340 gles2::cmds::PathParameteriCHROMIUM* c =
2341 GetCmdSpace<gles2::cmds::PathParameteriCHROMIUM>();
2342 if (c) {
2343 c->Init(path, pname, value);
2344 }
2345 }
2346
2347 void PathStencilFuncCHROMIUM(GLenum func, GLint ref, GLuint mask) {
2348 gles2::cmds::PathStencilFuncCHROMIUM* c =
2349 GetCmdSpace<gles2::cmds::PathStencilFuncCHROMIUM>();
2350 if (c) {
2351 c->Init(func, ref, mask);
2352 }
2353 }
2354
2355 void StencilFillPathCHROMIUM(GLuint path, GLenum fillMode, GLuint mask) {
2356 gles2::cmds::StencilFillPathCHROMIUM* c =
2357 GetCmdSpace<gles2::cmds::StencilFillPathCHROMIUM>();
2358 if (c) {
2359 c->Init(path, fillMode, mask);
2360 }
2361 }
2362
2363 void StencilFillPathInstancedCHROMIUM(GLsizei numPaths,
2364 GLenum pathNameType,
2365 uint32 paths_shm_id,
2366 uint32 paths_shm_offset,
2367 GLuint pathBase,
2368 GLenum fillMode,
2369 GLuint mask,
2370 GLenum transformType,
2371 uint32 transformValues_shm_id,
2372 uint32 transformValues_shm_offset) {
2373 gles2::cmds::StencilFillPathInstancedCHROMIUM* c =
2374 GetCmdSpace<gles2::cmds::StencilFillPathInstancedCHROMIUM>();
2375 if (c) {
2376 c->Init(numPaths,
2377 pathNameType,
2378 paths_shm_id,
2379 paths_shm_offset,
2380 pathBase,
2381 fillMode,
2382 mask,
2383 transformType,
2384 transformValues_shm_id,
2385 transformValues_shm_offset);
2386 }
2387 }
2388
2389 void StencilStrokePathCHROMIUM(GLuint path, GLint reference, GLuint mask) {
2390 gles2::cmds::StencilStrokePathCHROMIUM* c =
2391 GetCmdSpace<gles2::cmds::StencilStrokePathCHROMIUM>();
2392 if (c) {
2393 c->Init(path, reference, mask);
2394 }
2395 }
2396
2397 void StencilStrokePathInstancedCHROMIUM(GLsizei numPaths,
2398 GLenum pathNameType,
2399 uint32 paths_shm_id,
2400 uint32 paths_shm_offset,
2401 GLuint pathBase,
2402 GLint ref,
2403 GLuint mask,
2404 GLenum transformType,
2405 uint32 transformValues_shm_id,
2406 uint32 transformValues_shm_offset) {
2407 gles2::cmds::StencilStrokePathInstancedCHROMIUM* c =
2408 GetCmdSpace<gles2::cmds::StencilStrokePathInstancedCHROMIUM>();
2409 if (c) {
2410 c->Init(numPaths,
2411 pathNameType,
2412 paths_shm_id,
2413 paths_shm_offset,
2414 pathBase,
2415 ref,
2416 mask,
2417 transformType,
2418 transformValues_shm_id,
2419 transformValues_shm_offset);
2420 }
2421 }
2422
2423 void PathTexGenCHROMIUM(GLenum texCoordSet,
2424 GLenum genMode,
2425 GLint components,
2426 uint32 coeffs_shm_id,
2427 uint32 coeffs_shm_offset) {
2428 gles2::cmds::PathTexGenCHROMIUM* c =
2429 GetCmdSpace<gles2::cmds::PathTexGenCHROMIUM>();
2430 if (c) {
2431 c->Init(texCoordSet, genMode, components, coeffs_shm_id, coeffs_shm_offset);
2432 }
2433 }
2434
2435 void CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) {
2436 gles2::cmds::CoverFillPathCHROMIUM* c =
2437 GetCmdSpace<gles2::cmds::CoverFillPathCHROMIUM>();
2438 if (c) {
2439 c->Init(path, coverMode);
2440 }
2441 }
2442
2443 void CoverFillPathInstancedCHROMIUM(GLsizei numPaths,
2444 GLenum pathNameType,
2445 uint32 paths_shm_id,
2446 uint32 paths_shm_offset,
2447 GLuint pathBase,
2448 GLenum coverMode,
2449 GLenum transformType,
2450 uint32 transformValues_shm_id,
2451 uint32 transformValues_shm_offset) {
2452 gles2::cmds::CoverFillPathInstancedCHROMIUM* c =
2453 GetCmdSpace<gles2::cmds::CoverFillPathInstancedCHROMIUM>();
2454 if (c) {
2455 c->Init(numPaths,
2456 pathNameType,
2457 paths_shm_id,
2458 paths_shm_offset,
2459 pathBase,
2460 coverMode,
2461 transformType,
2462 transformValues_shm_id,
2463 transformValues_shm_offset);
2464 }
2465 }
2466
2467 void CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) {
2468 gles2::cmds::CoverStrokePathCHROMIUM* c =
2469 GetCmdSpace<gles2::cmds::CoverStrokePathCHROMIUM>();
2470 if (c) {
2471 c->Init(path, coverMode);
2472 }
2473 }
2474
2475 void CoverStrokePathInstancedCHROMIUM(GLsizei numPaths,
2476 GLenum pathNameType,
2477 uint32 paths_shm_id,
2478 uint32 paths_shm_offset,
2479 GLuint pathBase,
2480 GLenum coverMode,
2481 GLenum transformType,
2482 uint32 transformValues_shm_id,
2483 uint32 transformValues_shm_offset) {
2484 gles2::cmds::CoverStrokePathInstancedCHROMIUM* c =
2485 GetCmdSpace<gles2::cmds::CoverStrokePathInstancedCHROMIUM>();
2486 if (c) {
2487 c->Init(numPaths,
2488 pathNameType,
2489 paths_shm_id,
2490 paths_shm_offset,
2491 pathBase,
2492 coverMode,
2493 transformType,
2494 transformValues_shm_id,
2495 transformValues_shm_offset);
2496 }
2497 }
2498
2291 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 2499 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698