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

Side by Side Diff: content/renderer/gpu/renderer_gl_context.cc

Issue 8171015: Rename RenderThread to RenderThreadImpl (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/renderer/gpu/renderer_gl_context.h" 5 #include "content/renderer/gpu/renderer_gl_context.h"
6 6
7 #include "base/debug/trace_event.h" 7 #include "base/debug/trace_event.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/singleton.h" 11 #include "base/memory/singleton.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/shared_memory.h" 13 #include "base/shared_memory.h"
14 #include "content/common/view_messages.h" 14 #include "content/common/view_messages.h"
15 #include "content/renderer/gpu/command_buffer_proxy.h" 15 #include "content/renderer/gpu/command_buffer_proxy.h"
16 #include "content/renderer/gpu/gpu_channel_host.h" 16 #include "content/renderer/gpu/gpu_channel_host.h"
17 #include "content/renderer/gpu/transport_texture_host.h" 17 #include "content/renderer/gpu/transport_texture_host.h"
18 #include "content/renderer/gpu/transport_texture_service.h" 18 #include "content/renderer/gpu/transport_texture_service.h"
19 #include "content/renderer/render_thread.h"
20 #include "content/renderer/render_widget.h" 19 #include "content/renderer/render_widget.h"
21 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
22 #include "ipc/ipc_channel_handle.h" 21 #include "ipc/ipc_channel_handle.h"
23 22
24 #if defined(ENABLE_GPU) 23 #if defined(ENABLE_GPU)
25 #include "gpu/command_buffer/client/gles2_cmd_helper.h" 24 #include "gpu/command_buffer/client/gles2_cmd_helper.h"
26 #include "gpu/command_buffer/client/gles2_implementation.h" 25 #include "gpu/command_buffer/client/gles2_implementation.h"
27 #include "gpu/command_buffer/client/gles2_lib.h" 26 #include "gpu/command_buffer/client/gles2_lib.h"
28 #include "gpu/command_buffer/common/constants.h" 27 #include "gpu/command_buffer/common/constants.h"
29 #endif // ENABLE_GPU 28 #endif // ENABLE_GPU
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 void RendererGLContext::OnContextLost() { 448 void RendererGLContext::OnContextLost() {
450 if (context_lost_callback_.get()) { 449 if (context_lost_callback_.get()) {
451 RendererGLContext::ContextLostReason reason = kUnknown; 450 RendererGLContext::ContextLostReason reason = kUnknown;
452 if (command_buffer_) { 451 if (command_buffer_) {
453 reason = ConvertReason( 452 reason = ConvertReason(
454 command_buffer_->GetLastState().context_lost_reason); 453 command_buffer_->GetLastState().context_lost_reason);
455 } 454 }
456 context_lost_callback_->Run(reason); 455 context_lost_callback_->Run(reason);
457 } 456 }
458 } 457 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698