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

Unified Diff: content/test/test_context_provider_factory.cc

Issue 199443004: gpu: Raise GL_OUT_OF_MEMORY when BeginQueryEXT fails to allocate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: checkmem: benchmark 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: content/test/test_context_provider_factory.cc
diff --git a/content/test/test_context_provider_factory.cc b/content/test/test_context_provider_factory.cc
index 96ce738e70f749a1539bf5ca44c5a2da5c412974..33ba614b1a3c7f6ac4f24545a4470d0e6a587ed2 100644
--- a/content/test/test_context_provider_factory.cc
+++ b/content/test/test_context_provider_factory.cc
@@ -26,7 +26,9 @@ TestContextProviderFactory::~TestContextProviderFactory() {}
scoped_refptr<cc::ContextProvider> TestContextProviderFactory::
OffscreenContextProviderForMainThread() {
if (!main_thread_.get() || main_thread_->DestroyedOnMainThread()) {
- main_thread_ = webkit::gpu::ContextProviderInProcess::CreateOffscreen();
+ bool lose_context_when_out_of_memory = false;
+ main_thread_ = webkit::gpu::ContextProviderInProcess::CreateOffscreen(
+ lose_context_when_out_of_memory);
if (main_thread_.get() && !main_thread_->BindToCurrentThread())
main_thread_ = NULL;
}
« no previous file with comments | « content/renderer/renderer_webkitplatformsupport_impl.cc ('k') | gpu/command_buffer/client/gl_in_process_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698