blob: 44283df37a902f174ed548872db918cb95fc3661 (
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
28
29
30
31
|
// Copyright (c) 2010 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.
#ifndef CHROME_RENDERER_WEBGLES2CONTEXT_IMPL_H_
#define CHROME_RENDERER_WEBGLES2CONTEXT_IMPL_H_
#if defined(ENABLE_GPU)
#include "chrome/renderer/ggl/ggl.h"
#include "third_party/WebKit/WebKit/chromium/public/WebGLES2Context.h"
class WebGLES2ContextImpl : public WebKit::WebGLES2Context {
public:
WebGLES2ContextImpl();
virtual ~WebGLES2ContextImpl();
virtual bool initialize(WebKit::WebView*);
virtual bool makeCurrent();
virtual bool destroy();
virtual bool swapBuffers();
private:
// The GGL context we use for OpenGL rendering.
ggl::Context* context_;
WebKit::WebView* web_view_;
};
#endif // defined(ENABLE_GPU)
#endif // CHROME_RENDERER_WEBGLES2CONTEXT_IMPL_H_
|