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

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

Issue 1565343003: Move mojo/application/public -> mojo/shell/public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fetcher
Patch Set: . Created 4 years, 11 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
« no previous file with comments | « components/html_viewer/stats_collection_controller.cc ('k') | components/mus/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "components/html_viewer/web_graphics_context_3d_command_buffer_impl.h" 5 #include "components/html_viewer/web_graphics_context_3d_command_buffer_impl.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "components/html_viewer/blink_basic_type_converters.h" 9 #include "components/html_viewer/blink_basic_type_converters.h"
10 #include "components/html_viewer/global_state.h" 10 #include "components/html_viewer/global_state.h"
11 #include "components/mus/public/cpp/context_provider.h" 11 #include "components/mus/public/cpp/context_provider.h"
12 #include "components/mus/public/interfaces/gpu.mojom.h" 12 #include "components/mus/public/interfaces/gpu.mojom.h"
13 #include "gpu/command_buffer/common/gles2_cmd_utils.h" 13 #include "gpu/command_buffer/common/gles2_cmd_utils.h"
14 #include "mojo/application/public/cpp/application_impl.h"
15 #include "mojo/gles2/gles2_context.h" 14 #include "mojo/gles2/gles2_context.h"
16 #include "mojo/gpu/mojo_gles2_impl_autogen.h" 15 #include "mojo/gpu/mojo_gles2_impl_autogen.h"
17 #include "mojo/public/cpp/environment/environment.h" 16 #include "mojo/public/cpp/environment/environment.h"
18 #include "mojo/public/cpp/system/message_pipe.h" 17 #include "mojo/public/cpp/system/message_pipe.h"
18 #include "mojo/shell/public/cpp/application_impl.h"
19 19
20 namespace html_viewer { 20 namespace html_viewer {
21 21
22 // static 22 // static
23 WebGraphicsContext3DCommandBufferImpl* 23 WebGraphicsContext3DCommandBufferImpl*
24 WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext( 24 WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
25 GlobalState* global_state, 25 GlobalState* global_state,
26 mojo::ApplicationImpl* app, 26 mojo::ApplicationImpl* app,
27 const GURL& active_url, 27 const GURL& active_url,
28 const blink::WebGraphicsContext3D::Attributes& attributes, 28 const blink::WebGraphicsContext3D::Attributes& attributes,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 if (gles2_context_) 71 if (gles2_context_)
72 MojoGLES2DestroyContext(gles2_context_); 72 MojoGLES2DestroyContext(gles2_context_);
73 } 73 }
74 74
75 void WebGraphicsContext3DCommandBufferImpl::ContextLost() { 75 void WebGraphicsContext3DCommandBufferImpl::ContextLost() {
76 if (context_lost_callback_) 76 if (context_lost_callback_)
77 context_lost_callback_->onContextLost(); 77 context_lost_callback_->onContextLost();
78 } 78 }
79 79
80 } // namespace html_viewer 80 } // namespace html_viewer
OLDNEW
« no previous file with comments | « components/html_viewer/stats_collection_controller.cc ('k') | components/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698