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

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

Issue 216603004: Fix WebGLDebugShaders::getTranslatedShaderSource returning null (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 8 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 | « Source/platform/graphics/test/MockWebGraphicsContext3D.h ('k') | 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 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 384
385 virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback ) { } 385 virtual void setContextLostCallback(WebGraphicsContextLostCallback* callback ) { }
386 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba ck) { } 386 virtual void setErrorMessageCallback(WebGraphicsErrorMessageCallback* callba ck) { }
387 // GL_ARB_robustness 387 // GL_ARB_robustness
388 // 388 //
389 // This entry point must provide slightly different semantics than 389 // This entry point must provide slightly different semantics than
390 // the GL_ARB_robustness extension; specifically, the lost context 390 // the GL_ARB_robustness extension; specifically, the lost context
391 // state is sticky, rather than reported only once. 391 // state is sticky, rather than reported only once.
392 virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */ } 392 virtual WGC3Denum getGraphicsResetStatusARB() { return 0; /* GL_NO_ERROR */ }
393 393
394 // FIXME: make this function pure virtual once it is implemented in 394 virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) = 0;
395 // both command buffer port and in-process port.
396 virtual WebString getTranslatedShaderSourceANGLE(WebGLId shader) { return We bString(); }
397 395
398 // GL_CHROMIUM_iosurface 396 // GL_CHROMIUM_iosurface
399 virtual void texImageIOSurface2DCHROMIUM(WGC3Denum target, WGC3Dint width, W GC3Dint height, WGC3Duint ioSurfaceId, WGC3Duint plane) { } 397 virtual void texImageIOSurface2DCHROMIUM(WGC3Denum target, WGC3Dint width, W GC3Dint height, WGC3Duint ioSurfaceId, WGC3Duint plane) { }
400 398
401 // GL_EXT_texture_storage 399 // GL_EXT_texture_storage
402 virtual void texStorage2DEXT(WGC3Denum target, WGC3Dint levels, WGC3Duint in ternalformat, 400 virtual void texStorage2DEXT(WGC3Denum target, WGC3Dint levels, WGC3Duint in ternalformat,
403 WGC3Dint width, WGC3Dint height) { } 401 WGC3Dint width, WGC3Dint height) { }
404 402
405 // GL_EXT_occlusion_query 403 // GL_EXT_occlusion_query
406 virtual WebGLId createQueryEXT() { return 0; } 404 virtual WebGLId createQueryEXT() { return 0; }
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { } 467 virtual void vertexAttribDivisorANGLE(WGC3Duint index, WGC3Duint divisor) { }
470 468
471 // GL_EXT_multisampled_render_to_texture 469 // GL_EXT_multisampled_render_to_texture
472 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, WGC3Denum attachment, WGC3Denum textarget, WebGLId texture, WGC3Dint level, WGC3Dsizei sam ples) { } 470 virtual void framebufferTexture2DMultisampleEXT(WGC3Denum target, WGC3Denum attachment, WGC3Denum textarget, WebGLId texture, WGC3Dint level, WGC3Dsizei sam ples) { }
473 virtual void renderbufferStorageMultisampleEXT(WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) { }; 471 virtual void renderbufferStorageMultisampleEXT(WGC3Denum target, WGC3Dsizei samples, WGC3Denum internalformat, WGC3Dsizei width, WGC3Dsizei height) { };
474 }; 472 };
475 473
476 } // namespace blink 474 } // namespace blink
477 475
478 #endif 476 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/test/MockWebGraphicsContext3D.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698