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

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

Issue 1384233003: Improve usefulness of webglcontextcreationerror statusMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_HTML_VIEWER_WEB_GRAPHICS_CONTEXT_3D_COMMAND_BUFFER_IMPL_H_ 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_ 6 #define COMPONENTS_HTML_VIEWER_WEB_GRAPHICS_CONTEXT_3D_COMMAND_BUFFER_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/mus/public/interfaces/command_buffer.mojom.h" 9 #include "components/mus/public/interfaces/command_buffer.mojom.h"
10 #include "gpu/blink/webgraphicscontext3d_impl.h" 10 #include "gpu/blink/webgraphicscontext3d_impl.h"
(...skipping 18 matching lines...) Expand all
29 29
30 class WebGraphicsContext3DCommandBufferImpl 30 class WebGraphicsContext3DCommandBufferImpl
31 : public gpu_blink::WebGraphicsContext3DImpl { 31 : public gpu_blink::WebGraphicsContext3DImpl {
32 public: 32 public:
33 static WebGraphicsContext3DCommandBufferImpl* CreateOffscreenContext( 33 static WebGraphicsContext3DCommandBufferImpl* CreateOffscreenContext(
34 GlobalState* global_state, 34 GlobalState* global_state,
35 mojo::ApplicationImpl* app, 35 mojo::ApplicationImpl* app,
36 const GURL& active_url, 36 const GURL& active_url,
37 const blink::WebGraphicsContext3D::Attributes& attributes, 37 const blink::WebGraphicsContext3D::Attributes& attributes,
38 blink::WebGraphicsContext3D* share_context, 38 blink::WebGraphicsContext3D* share_context,
39 blink::WebGLInfo* gl_info); 39 blink::WebGraphicsContext3D::WebGraphicsInfo* gl_info);
40 40
41 private: 41 private:
42 WebGraphicsContext3DCommandBufferImpl( 42 WebGraphicsContext3DCommandBufferImpl(
43 mojo::InterfacePtrInfo<mus::mojom::CommandBuffer> command_buffer_info, 43 mojo::InterfacePtrInfo<mus::mojom::CommandBuffer> command_buffer_info,
44 const GURL& active_url, 44 const GURL& active_url,
45 const blink::WebGraphicsContext3D::Attributes& attributes, 45 const blink::WebGraphicsContext3D::Attributes& attributes,
46 blink::WebGraphicsContext3D* share_context); 46 blink::WebGraphicsContext3D* share_context);
47 virtual ~WebGraphicsContext3DCommandBufferImpl(); 47 virtual ~WebGraphicsContext3DCommandBufferImpl();
48 48
49 static void ContextLostThunk(void* closure) { 49 static void ContextLostThunk(void* closure) {
50 static_cast<WebGraphicsContext3DCommandBufferImpl*>(closure)->ContextLost(); 50 static_cast<WebGraphicsContext3DCommandBufferImpl*>(closure)->ContextLost();
51 } 51 }
52 void ContextLost(); 52 void ContextLost();
53 53
54 MojoGLES2Context gles2_context_; 54 MojoGLES2Context gles2_context_;
55 scoped_ptr<gpu::gles2::GLES2Interface> context_gl_; 55 scoped_ptr<gpu::gles2::GLES2Interface> context_gl_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(WebGraphicsContext3DCommandBufferImpl); 57 DISALLOW_COPY_AND_ASSIGN(WebGraphicsContext3DCommandBufferImpl);
58 }; 58 };
59 59
60 } // namespace html_viewer 60 } // namespace html_viewer
61 61
62 #endif // COMPONENTS_HTML_VIEWER_WEB_GRAPHICS_CONTEXT_3D_COMMAND_BUFFER_IMPL_H_ 62 #endif // COMPONENTS_HTML_VIEWER_WEB_GRAPHICS_CONTEXT_3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « components/html_viewer/blink_platform_impl.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