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

Side by Side Diff: Source/Platform/chromium/public/WebGraphicsContext3D.h

Issue 14502005: blink: Adding the imageBufferDataCHROMIUM API for GpuMemoryBuffers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: New WGC3D API for GpuMemoryBuffers 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 virtual void asyncTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WG C3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, const void* pixels) { } 491 virtual void asyncTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WG C3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, const void* pixels) { }
492 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum) { } 492 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum) { }
493 493
494 // GL_EXT_draw_buffers 494 // GL_EXT_draw_buffers
495 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs) { } 495 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs) { }
496 496
497 // FIXME: Make implementations of this class override this method instead an d then remove onCreateGrGLInterface(). 497 // FIXME: Make implementations of this class override this method instead an d then remove onCreateGrGLInterface().
498 virtual GrGLInterface* createGrGLInterface() { return onCreateGrGLInterface( ); } 498 virtual GrGLInterface* createGrGLInterface() { return onCreateGrGLInterface( ); }
499 499
500 // GL_CHROMIUM_gpu_memory_buffer 500 // GL_CHROMIUM_gpu_memory_buffer
501 virtual void imageBufferDataCHROMIUM(WGC3Denum target, WGC3Dsizei width, WGC 3Dsizei height) { } 501 virtual WGC3Duint createImageCHROMIUM(WGC3Dsizei width, WGC3Dsizei height) { return 0; }
502 virtual void destroyImageCHROMIUM(WGC3Duint imageId) { }
503 virtual void getImageParameterivCHROMIUM(WGC3Duint imageId, WGC3Denum pname, WGC3Dint* params) { }
504 virtual void* mapImageCHROMIUM(WGC3Duint imageId, WGC3Denum access) { return 0; }
505 virtual WGC3Dboolean unmapImageCHROMIUM(WGC3Duint imageId) { return false; }
502 506
503 protected: 507 protected:
504 virtual GrGLInterface* onCreateGrGLInterface() { return 0; } 508 virtual GrGLInterface* onCreateGrGLInterface() { return 0; }
505 509
506 }; 510 };
507 511
508 } // namespace WebKit 512 } // namespace WebKit
509 513
510 #endif 514 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698