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

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: Add missing parameter in GLES2Implementation ctor in GLES2Implementation unittest 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 456 matching lines...) Expand 10 before | Expand all | Expand 10 after
467 virtual void texImageIOSurface2DCHROMIUM( 467 virtual void texImageIOSurface2DCHROMIUM(
468 WGC3Denum target, WGC3Dint width, WGC3Dint height, 468 WGC3Denum target, WGC3Dint width, WGC3Dint height,
469 WGC3Duint ioSurfaceId, WGC3Duint plane); 469 WGC3Duint ioSurfaceId, WGC3Duint plane);
470 470
471 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); 471 virtual void bindTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId);
472 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId); 472 virtual void releaseTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint imageId);
473 473
474 virtual void texStorage2DEXT( 474 virtual void texStorage2DEXT(
475 WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat, 475 WGC3Denum target, WGC3Dint levels, WGC3Duint internalformat,
476 WGC3Dint width, WGC3Dint height); 476 WGC3Dint width, WGC3Dint height);
477 477 virtual WGC3Duint createImageCHROMIUM(
478 WGC3Dsizei width, WGC3Dsizei height, WGC3Denum internalformat);
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 void 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 WebKit::WebGraphicsContext3D::Attributes attributes_; 583 WebKit::WebGraphicsContext3D::Attributes attributes_;
578 int cached_width_, cached_height_; 584 int cached_width_, cached_height_;
579 585
580 // For tracking which FBO is bound. 586 // For tracking which FBO is bound.
581 WebGLId bound_fbo_; 587 WebGLId bound_fbo_;
582 588
583 // Errors raised by synthesizeGLError(). 589 // Errors raised by synthesizeGLError().
584 std::vector<WGC3Denum> synthetic_errors_; 590 std::vector<WGC3Denum> synthetic_errors_;
585 591
586 std::vector<uint8> scanline_; 592 std::vector<uint8> scanline_;
593
587 void FlipVertically(uint8* framebuffer, 594 void FlipVertically(uint8* framebuffer,
588 unsigned int width, 595 unsigned int width,
589 unsigned int height); 596 unsigned int height);
590 }; 597 };
591 598
592 } // namespace gpu 599 } // namespace gpu
593 } // namespace webkit 600 } // namespace webkit
594 601
595 #endif // defined(ENABLE_GPU) 602 #endif // defined(ENABLE_GPU)
596 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 603 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_mock.cc ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698