blob: 769dd5685c579e472c3f1aaa1bbdf804dba61899 [file] [log] [blame]
[email protected]9cdd7152014-01-14 14:20:431// Copyright 2014 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_
6#define CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_
7
8#include "base/compiler_specific.h"
9#include "base/memory/ref_counted.h"
10#include "content/common/content_export.h"
11#include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h"
12
tfarinaae8232df2015-02-04 13:10:0213namespace cc_blink {
[email protected]9cdd7152014-01-14 14:20:4314class ContextProviderWebContext;
tfarinaae8232df2015-02-04 13:10:0215}
[email protected]9cdd7152014-01-14 14:20:4316
17namespace content {
18
19class CONTENT_EXPORT WebGraphicsContext3DProviderImpl
20 : public NON_EXPORTED_BASE(blink::WebGraphicsContext3DProvider) {
21 public:
22 explicit WebGraphicsContext3DProviderImpl(
tfarinaae8232df2015-02-04 13:10:0223 scoped_refptr<cc_blink::ContextProviderWebContext> provider);
avi5c77d212015-09-25 20:08:2524 ~WebGraphicsContext3DProviderImpl() override;
[email protected]9cdd7152014-01-14 14:20:4325
26 // WebGraphicsContext3DProvider implementation.
avi5c77d212015-09-25 20:08:2527 blink::WebGraphicsContext3D* context3d() override;
28 GrContext* grContext() override;
[email protected]9cdd7152014-01-14 14:20:4329
30 private:
tfarinaae8232df2015-02-04 13:10:0231 scoped_refptr<cc_blink::ContextProviderWebContext> provider_;
[email protected]9cdd7152014-01-14 14:20:4332};
33
34} // namespace content
35
36#endif // CONTENT_RENDERER_WEBGRAPHICSCONTEXT3D_PROVIDER_IMPL_H_