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

Unified Diff: content/common/gpu/client/gpu_in_process_context_tests.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: content/common/gpu/client/gpu_in_process_context_tests.cc
===================================================================
--- content/common/gpu/client/gpu_in_process_context_tests.cc (revision 261814)
+++ content/common/gpu/client/gpu_in_process_context_tests.cc (working copy)
@@ -20,8 +20,10 @@
public:
virtual void SetUp() {
blink::WebGraphicsContext3D::Attributes attributes;
- context_ = WebGraphicsContext3DInProcessCommandBufferImpl::
- CreateOffscreenContext(attributes);
+ bool lose_context_when_out_of_memory = false;
+ typedef WebGraphicsContext3DInProcessCommandBufferImpl WGC3DIPCBI;
+ context_ = WGC3DIPCBI::CreateOffscreenContext(
+ attributes, lose_context_when_out_of_memory);
context_->makeContextCurrent();
context_support_ = context_->GetContextSupport();
}
« no previous file with comments | « content/common/gpu/client/gl_helper_unittest.cc ('k') | content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698