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

Unified Diff: android_webview/browser/aw_render_thread_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: fix android webview build + browser test 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: android_webview/browser/aw_render_thread_context_provider.cc
diff --git a/android_webview/browser/aw_render_thread_context_provider.cc b/android_webview/browser/aw_render_thread_context_provider.cc
index 34531a5af42e03e92262a519aec0db818b326d7b..748de1f3e510d81c4d6b54beacd43cf4deb5acfa 100644
--- a/android_webview/browser/aw_render_thread_context_provider.cc
+++ b/android_webview/browser/aw_render_thread_context_provider.cc
@@ -130,8 +130,8 @@ class GrContext* AwRenderThreadContextProvider::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 | « no previous file | cc/test/test_in_process_context_provider.cc » ('j') | content/browser/gpu/gpu_ipc_browsertests.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698