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

Unified Diff: cc/test/test_in_process_context_provider.cc

Issue 1414683003: Fix gpu command buffer use after free by GrContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixup Created 5 years, 1 month 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: cc/test/test_in_process_context_provider.cc
diff --git a/cc/test/test_in_process_context_provider.cc b/cc/test/test_in_process_context_provider.cc
index 02c23af3df3b9ca6f00681f505d3d8f2415e7980..a56560f2cea6acded79911100185f9edce010c03 100644
--- a/cc/test/test_in_process_context_provider.cc
+++ b/cc/test/test_in_process_context_provider.cc
@@ -114,8 +114,8 @@ class GrContext* TestInProcessContextProvider::GrContext() {
g_gles2_initializer.Get();
gles2::SetGLContext(ContextGL());
- skia::RefPtr<GrGLInterface> interface =
- skia::AdoptRef(skia_bindings::CreateCommandBufferSkiaGLBinding());
+ skia::RefPtr<GrGLInterface> interface = skia::AdoptRef(new GrGLInterface);
+ skia_bindings::InitCommandBufferSkiaGLBinding(interface.get());
interface->fCallback = BindGrContextCallback;
interface->fCallbackData = reinterpret_cast<GrGLInterfaceCallbackData>(this);
« no previous file with comments | « blimp/client/compositor/blimp_context_provider.cc ('k') | content/browser/android/in_process/context_provider_in_process.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698