Add GrContextOption for GL error checking, shader, and program success.

Small behavior change: will not check for shader success and program
linking success over the command buffer in a debug build.

Also fail gracefully if stencil renderbuffer allocation fails.

Bug: skia:9938
Bug: chromium:1040186
Change-Id: I623f09d306261d28070078268f6242f92d65fd5f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/273276
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: Brian Salomon <bsalomon@google.com>
diff --git a/RELEASE_NOTES.txt b/RELEASE_NOTES.txt
index 7137c17..3e9b74f 100644
--- a/RELEASE_NOTES.txt
+++ b/RELEASE_NOTES.txt
@@ -7,6 +7,10 @@
 Milestone 82
 
 <Insert new notes here- top is most recent.>
+  * Added a field to GrContextOptions that controls whether GL errors are checked after
+    GL calls that allocate textures, etc. It also controls checking for shader compile
+    success, and program linking success.
+
   * Made SkDeferredDisplayList.h officially part of the public API (i.e., moved it to
     include/core). Also added a ProgramIterator to SkDeferredDisplayList which allows
     clients to pre-compile some of the shaders the DDL requires.