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

Side by Side Diff: components/html_viewer/web_graphics_context_3d_command_buffer_impl.h

Issue 1343303003: Revert of Mandoline: Add WebGL support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 months 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
OLDNEW
(Empty)
1 // Copyright 2015 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 COMPONENTS_HTML_VIEWER_WEB_GRAPHICS_CONTEXT_3D_COMMAND_BUFFER_IMPL_H_
6 #define COMPONENTS_HTML_VIEWER_WEB_GRAPHICS_CONTEXT_3D_COMMAND_BUFFER_IMPL_H_
7
8 #include "base/macros.h"
9 #include "gpu/blink/webgraphicscontext3d_impl.h"
10 #include "mojo/public/c/gles2/gles2.h"
11 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
12 #include "third_party/WebKit/public/platform/WebString.h"
13 #include "third_party/mojo/src/mojo/public/cpp/system/core.h"
14 #include "third_party/mojo/src/mojo/public/cpp/system/message_pipe.h"
15 #include "url/gurl.h"
16
17 namespace gpu {
18 class ContextSupport;
19 namespace gles2 { class GLES2Interface; }
20 }
21
22 namespace mojo {
23 class ApplicationImpl;
24 } // namespace mojo
25
26 namespace html_viewer {
27
28 class WebGraphicsContext3DCommandBufferImpl
29 : public gpu_blink::WebGraphicsContext3DImpl {
30 public:
31 WebGraphicsContext3DCommandBufferImpl(
32 mojo::ApplicationImpl* app,
33 const GURL& active_url,
34 const blink::WebGraphicsContext3D::Attributes& attributes,
35 blink::WebGraphicsContext3D* share_context,
36 blink::WebGLInfo* gl_info);
37 virtual ~WebGraphicsContext3DCommandBufferImpl();
38
39 static WebGraphicsContext3DCommandBufferImpl* CreateOffscreenContext(
40 mojo::ApplicationImpl* app,
41 const GURL& active_url,
42 const blink::WebGraphicsContext3D::Attributes& attributes,
43 blink::WebGraphicsContext3D* share_context,
44 blink::WebGLInfo* gl_info);
45
46 private:
47 static void ContextLostThunk(void* closure) {
48 static_cast<WebGraphicsContext3DCommandBufferImpl*>(closure)->ContextLost();
49 }
50 void ContextLost();
51
52 mojo::ScopedMessagePipeHandle command_buffer_handle_;
53 MojoGLES2Context gles2_context_;
54 scoped_ptr<gpu::gles2::GLES2Interface> context_gl_;
55
56 DISALLOW_COPY_AND_ASSIGN(WebGraphicsContext3DCommandBufferImpl);
57 };
58
59 } // namespace html_viewer
60
61 #endif // COMPONENTS_HTML_VIEWER_WEB_GRAPHICS_CONTEXT_3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « components/html_viewer/html_widget.cc ('k') | components/html_viewer/web_graphics_context_3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698