blob: 6d049c07dadcd4c6e26f0c5865e70d5b72fecf62 (
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
32
33
34
35
|
// 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.
#include "webkit/plugins/ppapi/plugin_delegate.h"
#ifdef ENABLE_GPU
namespace ggl {
class Context;
} // namespace ggl;
class PlatformContext3DImpl
: public webkit::ppapi::PluginDelegate::PlatformContext3D {
public:
explicit PlatformContext3DImpl(ggl::Context* parent_context);
virtual ~PlatformContext3DImpl();
virtual bool Init();
virtual bool SwapBuffers();
virtual unsigned GetError();
virtual void SetSwapBuffersCallback(Callback0::Type* callback);
void ResizeBackingTexture(const gfx::Size& size);
virtual unsigned GetBackingTextureId();
virtual gpu::gles2::GLES2Implementation* GetGLES2Implementation();
private:
ggl::Context* parent_context_;
ggl::Context* context_;
};
#endif // ENABLE_GPU
|