Commit f1be8fc3 authored by danakj@chromium.org's avatar danakj@chromium.org

ui: Use WebGraphicsContext3DInProcessCommandBufferImpl in compositor.

Replace use of WebGraphicsContext3DInProcessImpl which is deprecated.

R=piman
BUG=224665

Review URL: https://chromiumcodereview.appspot.com/14241034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195276 0039d316-1c4b-4281-b951-d872f2087c98
parent 3480a07b
......@@ -33,7 +33,7 @@
#include "ui/gl/gl_surface.h"
#include "ui/gl/gl_switches.h"
#include "webkit/gpu/grcontext_for_webgraphicscontext3d.h"
#include "webkit/gpu/webgraphicscontext3d_in_process_impl.h"
#include "webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h"
#if defined(OS_CHROMEOS)
#include "base/chromeos/chromeos_version.h"
......@@ -245,12 +245,13 @@ WebKit::WebGraphicsContext3D* DefaultContextFactory::CreateContextCommon(
attrs.stencil = false;
attrs.antialias = false;
attrs.shareResources = true;
using webkit::gpu::WebGraphicsContext3DInProcessCommandBufferImpl;
WebKit::WebGraphicsContext3D* context =
offscreen ?
webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWebView(
attrs, false) :
webkit::gpu::WebGraphicsContext3DInProcessImpl::CreateForWindow(
attrs, compositor->widget(), NULL);
WebGraphicsContext3DInProcessCommandBufferImpl::CreateOffscreenContext(
attrs) :
WebGraphicsContext3DInProcessCommandBufferImpl::CreateViewContext(
attrs, compositor->widget());
if (!context)
return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment