blob: 00f439177feb35aba2458400cad0158c65467ec7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "webkit/gpu/webgraphicscontext3d_provider_impl.h"
#include "cc/output/context_provider.h"
namespace webkit {
namespace gpu {
WebGraphicsContext3DProviderImpl::WebGraphicsContext3DProviderImpl(
scoped_refptr<cc::ContextProvider> provider)
: provider_(provider) {}
WebGraphicsContext3DProviderImpl::~WebGraphicsContext3DProviderImpl() {}
WebKit::WebGraphicsContext3D* WebGraphicsContext3DProviderImpl::context3d() {
return provider_->Context3d();
}
GrContext* WebGraphicsContext3DProviderImpl::grContext() {
return provider_->GrContext();
}
} // namespace gpu
} // namespace webkit
|