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

Side by Side Diff: third_party/WebKit/public/platform/WebGraphicsContext3D.h

Issue 1414683003: Fix gpu command buffer use after free by GrContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixup Created 5 years, 1 month 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 /* 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 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
444 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target) { return false; } 444 virtual WGC3Dboolean unmapBufferCHROMIUM(WGC3Denum target) { return false; }
445 445
446 // GL_CHROMIUM_async_pixel_transfers 446 // GL_CHROMIUM_async_pixel_transfers
447 virtual void asyncTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC3D enum internalformat, WGC3Dsizei width, WGC3Dsizei height, WGC3Dint border, WGC3D enum format, WGC3Denum type, const void* pixels) { } 447 virtual void asyncTexImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WGC3D enum internalformat, WGC3Dsizei width, WGC3Dsizei height, WGC3Dint border, WGC3D enum format, WGC3Denum type, const void* pixels) { }
448 virtual void asyncTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WG C3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, const void* pixels) { } 448 virtual void asyncTexSubImage2DCHROMIUM(WGC3Denum target, WGC3Dint level, WG C3Dint xoffset, WGC3Dint yoffset, WGC3Dsizei width, WGC3Dsizei height, WGC3Denum format, WGC3Denum type, const void* pixels) { }
449 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum) { } 449 virtual void waitAsyncTexImage2DCHROMIUM(WGC3Denum) { }
450 450
451 // GL_EXT_draw_buffers 451 // GL_EXT_draw_buffers
452 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs) { } 452 virtual void drawBuffersEXT(WGC3Dsizei n, const WGC3Denum* bufs) { }
453 453
454 virtual GrGLInterface* createGrGLInterface() { return nullptr; }
455
456 // GL_CHROMIUM_image 454 // GL_CHROMIUM_image
457 virtual void destroyImageCHROMIUM(WGC3Duint imageId) { } 455 virtual void destroyImageCHROMIUM(WGC3Duint imageId) { }
458 456
459 // GL_CHROMIUM_gpu_memory_buffer_image 457 // GL_CHROMIUM_gpu_memory_buffer_image
460 virtual WGC3Duint createGpuMemoryBufferImageCHROMIUM(WGC3Dsizei width, WGC3D sizei height, WGC3Denum internalformat, WGC3Denum usage) { return 0; } 458 virtual WGC3Duint createGpuMemoryBufferImageCHROMIUM(WGC3Dsizei width, WGC3D sizei height, WGC3Denum internalformat, WGC3Denum usage) { return 0; }
461 459
462 // GL_ANGLE_instanced_arrays 460 // GL_ANGLE_instanced_arrays
463 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first, WGC3Ds izei count, WGC3Dsizei primcount) { } 461 virtual void drawArraysInstancedANGLE(WGC3Denum mode, WGC3Dint first, WGC3Ds izei count, WGC3Dsizei primcount) { }
464 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count, WG C3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount) { } 462 virtual void drawElementsInstancedANGLE(WGC3Denum mode, WGC3Dsizei count, WG C3Denum type, WGC3Dintptr offset, WGC3Dsizei primcount) { }
465 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { } 463 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { }
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { } 547 virtual void vertexAttribI4iv(WGC3Duint index, const WGC3Dint *v) { }
550 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC 3Duint z, WGC3Duint w) { } 548 virtual void vertexAttribI4ui(WGC3Duint index, WGC3Duint x, WGC3Duint y, WGC 3Duint z, WGC3Duint w) { }
551 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { } 549 virtual void vertexAttribI4uiv(WGC3Duint index, const WGC3Duint *v) { }
552 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum type, WGC3Dsizei stride, WGC3Dintptr pointer) { } 550 virtual void vertexAttribIPointer(WGC3Duint index, WGC3Dint size, WGC3Denum type, WGC3Dsizei stride, WGC3Dintptr pointer) { }
553 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo ut) { } 551 virtual void waitSync(WGC3Dsync sync, WGC3Dbitfield flags, WGC3Duint64 timeo ut) { }
554 }; 552 };
555 553
556 } // namespace blink 554 } // namespace blink
557 555
558 #endif 556 #endif
OLDNEW
« no previous file with comments | « gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc ('k') | ui/compositor/test/in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698