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

Unified Diff: Source/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 377113003: Make WebGLRenderingContext.getSupportedExtensions() return type nullable (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@idl-nullable-method-return-type
Patch Set: Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
index a52eb64d68173acf513ef3209fef55b7db695da7..f1ce925506d231612eae5bcad58f0eced4a9a583 100644
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
@@ -2600,11 +2600,12 @@ String WebGLRenderingContextBase::getShaderSource(WebGLShader* shader)
return ensureNotNull(shader->source());
}
-Vector<String> WebGLRenderingContextBase::getSupportedExtensions()
+Nullable<Vector<String> > WebGLRenderingContextBase::getSupportedExtensions()
{
- Vector<String> result;
if (isContextLost())
- return result;
+ return Nullable<Vector<String> >();
+
+ Vector<String> result;
for (size_t i = 0; i < m_extensions.size(); ++i) {
ExtensionTracker* tracker = m_extensions[i];
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.h ('k') | Source/core/html/canvas/WebGLRenderingContextBase.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698