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

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: Incorporate code reviews 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
581 WebKit::WebGraphicsContext3D::Attributes attributes_; 587 WebKit::WebGraphicsContext3D::Attributes attributes_;
582 int cached_width_, cached_height_; 588 int cached_width_, cached_height_;
583 589
584 // For tracking which FBO is bound. 590 // For tracking which FBO is bound.
585 WebGLId bound_fbo_; 591 WebGLId bound_fbo_;
586 592
587 // Errors raised by synthesizeGLError(). 593 // Errors raised by synthesizeGLError().
588 std::vector<WGC3Denum> synthetic_errors_; 594 std::vector<WGC3Denum> synthetic_errors_;
589 595
590 std::vector<uint8> scanline_; 596 std::vector<uint8> scanline_;
597
591 void FlipVertically(uint8* framebuffer, 598 void FlipVertically(uint8* framebuffer,
592 unsigned int width, 599 unsigned int width,
593 unsigned int height); 600 unsigned int height);
594 }; 601 };
595 602
596 } // namespace gpu 603 } // namespace gpu
597 } // namespace webkit 604 } // namespace webkit
598 605
599 #endif // defined(ENABLE_GPU) 606 #endif // defined(ENABLE_GPU)
600 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 607 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698