Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Side by Side Diff: chrome/renderer/pepper_platform_context_3d_impl.h

Issue 5842003: Move PlatformContext3DImpl to separate file (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/pepper_platform_context_3d_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2010 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 #include "webkit/glue/plugins/pepper_plugin_delegate.h"
6
7 #ifdef ENABLE_GPU
8
9 namespace ggl {
10
11 class Context;
12
13 } // namespace ggl;
14
15 class PlatformContext3DImpl : public pepper::PluginDelegate::PlatformContext3D {
16 public:
17 explicit PlatformContext3DImpl(ggl::Context* parent_context);
18 virtual ~PlatformContext3DImpl();
19
20 virtual bool Init();
21 virtual bool SwapBuffers();
22 virtual unsigned GetError();
23 virtual void SetSwapBuffersCallback(Callback0::Type* callback);
24 void ResizeBackingTexture(const gfx::Size& size);
25 virtual unsigned GetBackingTextureId();
26 virtual gpu::gles2::GLES2Implementation* GetGLES2Implementation();
27
28 private:
29 ggl::Context* parent_context_;
30 ggl::Context* context_;
31 };
32
33 #endif // ENABLE_GPU
34
OLDNEW
« no previous file with comments | « chrome/chrome_renderer.gypi ('k') | chrome/renderer/pepper_platform_context_3d_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698