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

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

Issue 17447007: Change WGC3DInProcessCBImpl factories to return a base class pointer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
diff --git a/webkit/common/gpu/context_provider_in_process.cc b/webkit/common/gpu/context_provider_in_process.cc
index 1545d3a598a538f6f6dc652d7e774273ca9479ec..ee439e9e792cb8bc64b4521202e2591b6f9a5223 100644
--- a/webkit/common/gpu/context_provider_in_process.cc
+++ b/webkit/common/gpu/context_provider_in_process.cc
@@ -5,6 +5,7 @@
#include "webkit/common/gpu/context_provider_in_process.h"
#include "webkit/common/gpu/grcontext_for_webgraphicscontext3d.h"
+#include "webkit/common/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
namespace webkit {
namespace gpu {
@@ -60,9 +61,9 @@ bool ContextProviderInProcess::InitializeOnMainThread() {
attributes.noAutomaticFlushes = true;
using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl;
- context3d_.reset(
+ context3d_ =
WebGraphicsContext3DInProcessCommandBufferImpl::CreateOffscreenContext(
- attributes));
+ attributes);
return context3d_;
}

Powered by Google App Engine
This is Rietveld 408576698