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

Side by Side Diff: android_webview/browser/aw_render_thread_context_provider.cc

Issue 2493913002: Mus: Move InProcessCommandBuffer and GLInProcessContext to gpu/ipc (Closed)
Patch Set: Fixed casts on windows Created 4 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 #include "android_webview/browser/aw_render_thread_context_provider.h" 5 #include "android_webview/browser/aw_render_thread_context_provider.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/callback_helpers.h" 8 #include "base/callback_helpers.h"
9 #include "base/lazy_instance.h" 9 #include "base/lazy_instance.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
11 #include "cc/output/context_cache_controller.h" 11 #include "cc/output/context_cache_controller.h"
12 #include "cc/output/managed_memory_policy.h" 12 #include "cc/output/managed_memory_policy.h"
13 #include "gpu/command_buffer/client/gl_in_process_context.h"
14 #include "gpu/command_buffer/client/gles2_implementation.h" 13 #include "gpu/command_buffer/client/gles2_implementation.h"
15 #include "gpu/command_buffer/client/gles2_lib.h" 14 #include "gpu/command_buffer/client/gles2_lib.h"
16 #include "gpu/command_buffer/client/shared_memory_limits.h" 15 #include "gpu/command_buffer/client/shared_memory_limits.h"
16 #include "gpu/ipc/gl_in_process_context.h"
17 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h" 17 #include "gpu/skia_bindings/gl_bindings_skia_cmd_buffer.h"
18 #include "third_party/skia/include/gpu/GrContext.h" 18 #include "third_party/skia/include/gpu/GrContext.h"
19 #include "third_party/skia/include/gpu/gl/GrGLInterface.h" 19 #include "third_party/skia/include/gpu/gl/GrGLInterface.h"
20 20
21 namespace android_webview { 21 namespace android_webview {
22 22
23 // static 23 // static
24 scoped_refptr<AwRenderThreadContextProvider> 24 scoped_refptr<AwRenderThreadContextProvider>
25 AwRenderThreadContextProvider::Create( 25 AwRenderThreadContextProvider::Create(
26 scoped_refptr<gl::GLSurface> surface, 26 scoped_refptr<gl::GLSurface> surface,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void AwRenderThreadContextProvider::OnLostContext() { 149 void AwRenderThreadContextProvider::OnLostContext() {
150 DCHECK(main_thread_checker_.CalledOnValidThread()); 150 DCHECK(main_thread_checker_.CalledOnValidThread());
151 151
152 if (!lost_context_callback_.is_null()) 152 if (!lost_context_callback_.is_null())
153 lost_context_callback_.Run(); 153 lost_context_callback_.Run();
154 if (gr_context_) 154 if (gr_context_)
155 gr_context_->abandonContext(); 155 gr_context_->abandonContext();
156 } 156 }
157 157
158 } // namespace android_webview 158 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/aw_render_thread_context_provider.h ('k') | android_webview/browser/deferred_gpu_command_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698