15d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)// Copyright 2014 The Chromium Authors. All rights reserved. 2b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 3b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)// found in the LICENSE file. 4b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 55d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "content/renderer/webgraphicscontext3d_provider_impl.h" 6b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 75d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "webkit/common/gpu/context_provider_web_context.h" 8b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 95d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)namespace content { 10b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 11b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)WebGraphicsContext3DProviderImpl::WebGraphicsContext3DProviderImpl( 125d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) scoped_refptr<webkit::gpu::ContextProviderWebContext> provider) 13b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) : provider_(provider) {} 14b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 15b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)WebGraphicsContext3DProviderImpl::~WebGraphicsContext3DProviderImpl() {} 16b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 17f2477e01787aa58f445919b809d89e252beef54fTorne (Richard Coles)blink::WebGraphicsContext3D* WebGraphicsContext3DProviderImpl::context3d() { 185d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles) return provider_->WebContext3D(); 19b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)} 20b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 21b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)GrContext* WebGraphicsContext3DProviderImpl::grContext() { 22b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) return provider_->GrContext(); 23b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles)} 24b2df76ea8fec9e32f6f3718986dba0d95315b29cTorne (Richard Coles) 255d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)} // namespace content 26