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

Unified Diff: webkit/common/gpu/context_provider_in_process.cc

Issue 226423002: Merge 261120 "gpu: Lose context when BeginQueryEXT fails to allo..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1916/src/
Patch Set: Created 6 years, 9 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: webkit/common/gpu/context_provider_in_process.cc
===================================================================
--- webkit/common/gpu/context_provider_in_process.cc (revision 261815)
+++ webkit/common/gpu/context_provider_in_process.cc (working copy)
@@ -48,7 +48,8 @@
// static
scoped_refptr<ContextProviderInProcess>
-ContextProviderInProcess::CreateOffscreen() {
+ContextProviderInProcess::CreateOffscreen(
+ bool lose_context_when_out_of_memory) {
blink::WebGraphicsContext3D::Attributes attributes;
attributes.depth = false;
attributes.stencil = true;
@@ -58,7 +59,8 @@
return Create(
WebGraphicsContext3DInProcessCommandBufferImpl::CreateOffscreenContext(
- attributes), "Offscreen");
+ attributes, lose_context_when_out_of_memory),
+ "Offscreen");
}
ContextProviderInProcess::ContextProviderInProcess(

Powered by Google App Engine
This is Rietveld 408576698