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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 14456004: GPU client side changes for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@glapi
Patch Set: Rollback decoder changes Created 7 years, 7 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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
7 7
8 #if defined(ENABLE_GPU) 8 #if defined(ENABLE_GPU)
9 9
10 #include <vector> 10 #include <vector>
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 // Support for buffer creation and deletion 396 // Support for buffer creation and deletion
397 virtual WebGLId createBuffer(); 397 virtual WebGLId createBuffer();
398 virtual WebGLId createFramebuffer(); 398 virtual WebGLId createFramebuffer();
399 virtual WebGLId createProgram(); 399 virtual WebGLId createProgram();
400 virtual WebGLId createRenderbuffer(); 400 virtual WebGLId createRenderbuffer();
401 virtual WebGLId createShader(WGC3Denum); 401 virtual WebGLId createShader(WGC3Denum);
402 virtual WebGLId createTexture(); 402 virtual WebGLId createTexture();
403 403
404 virtual void deleteBuffer(WebGLId); 404 virtual void deleteBuffer(WebGLId);
405 virtual void deleteFramebuffer(WebGLId); 405 virtual void deleteFramebuffer(WebGLId);
406 /* virtual void deleteImageBuffer(WebGLId); */
406 virtual void deleteProgram(WebGLId); 407 virtual void deleteProgram(WebGLId);
407 virtual void deleteRenderbuffer(WebGLId); 408 virtual void deleteRenderbuffer(WebGLId);
408 virtual void deleteShader(WebGLId); 409 virtual void deleteShader(WebGLId);
409 virtual void deleteTexture(WebGLId); 410 virtual void deleteTexture(WebGLId);
410 411
411 virtual void synthesizeGLError(WGC3Denum); 412 virtual void synthesizeGLError(WGC3Denum);
412 413
413 virtual void* mapBufferSubDataCHROMIUM( 414 virtual void* mapBufferSubDataCHROMIUM(
414 WGC3Denum target, WGC3Dintptr offset, 415 WGC3Denum target, WGC3Dintptr offset,
415 WGC3Dsizeiptr size, WGC3Denum access); 416 WGC3Dsizeiptr size, WGC3Denum access);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 virtual void texImageIOSurface2DCHROMIUM( 468 virtual void texImageIOSurface2DCHROMIUM(
468 WGC3Denum target, WGC3Dint width, WGC3Dint height, 469 WGC3Denum target, WGC3Dint width, WGC3Dint height,
469 WGC3Duint ioSurfaceId, WGC3Duint plane); 470 WGC3Duint ioSurfaceId, WGC3Duint plane);
470 471
471 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); 472 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId);
472 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); 473 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId);
473 474
474 virtual void texStorage2DEXT( 475 virtual void texStorage2DEXT(
475 WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat, 476 WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat,
476 WGC3Dint width, WGC3Dint height); 477 WGC3Dint width, WGC3Dint height);
477 478 virtual WGC3Duint createImageCHROMIUM(WGC3Dsizei width, WGC3Dsizei height);
479 virtual void destroyImageCHROMIUM(WGC3Duint image_id);
480 virtual void getImageParameterivCHROMIUM(
481 WGC3Duint image_id, WGC3Denum pname, WGC3Dint* params);
482 virtual void* mapImageCHROMIUM(WGC3Duint image_id, WGC3Denum access);
483 virtual WGC3Dboolean unmapImageCHROMIUM(WGC3Duint image_id);
478 virtual WebGLId createQueryEXT(); 484 virtual WebGLId createQueryEXT();
479 virtual void deleteQueryEXT(WebGLId query); 485 virtual void deleteQueryEXT(WebGLId query);
480 virtual WGC3Dboolean isQueryEXT(WebGLId query); 486 virtual WGC3Dboolean isQueryEXT(WebGLId query);
481 virtual void beginQueryEXT(WGC3Denum target, WebGLId query); 487 virtual void beginQueryEXT(WGC3Denum target, WebGLId query);
482 virtual void endQueryEXT(WGC3Denum target); 488 virtual void endQueryEXT(WGC3Denum target);
483 virtual void getQueryivEXT( 489 virtual void getQueryivEXT(
484 WGC3Denum target, WGC3Denum pname, WGC3Dint* params); 490 WGC3Denum target, WGC3Denum pname, WGC3Dint* params);
485 virtual void getQueryObjectuivEXT( 491 virtual void getQueryObjectuivEXT(
486 WebGLId query, WGC3Denum pname, WGC3Duint* params); 492 WebGLId query, WGC3Denum pname, WGC3Duint* params);
487 493
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 void FlipVertically(uint8* framebuffer, 597 void FlipVertically(uint8* framebuffer,
592 unsigned int width, 598 unsigned int width,
593 unsigned int height); 599 unsigned int height);
594 }; 600 };
595 601
596 } // namespace gpu 602 } // namespace gpu
597 } // namespace webkit 603 } // namespace webkit
598 604
599 #endif // defined(ENABLE_GPU) 605 #endif // defined(ENABLE_GPU)
600 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 606 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698