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

Side by Side Diff: content/renderer/render_widget_fullscreen_pepper.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
« no previous file with comments | « content/renderer/render_widget_fullscreen.cc ('k') | content/renderer/renderer_glue.cc » ('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 (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/render_widget_fullscreen_pepper.h" 5 #include "content/renderer/render_widget_fullscreen_pepper.h"
6 6
7 #include "base/message_loop.h" 7 #include "base/message_loop.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/renderer/gpu/gpu_channel_host.h" 9 #include "content/renderer/gpu/gpu_channel_host.h"
10 #include "content/renderer/pepper_platform_context_3d_impl.h" 10 #include "content/renderer/pepper_platform_context_3d_impl.h"
11 #include "content/renderer/render_thread.h" 11 #include "content/renderer/render_thread_impl.h"
12 #include "gpu/command_buffer/client/gles2_implementation.h" 12 #include "gpu/command_buffer/client/gles2_implementation.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h"
14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebSize.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebWidget.h"
16 #include "webkit/plugins/ppapi/plugin_delegate.h" 16 #include "webkit/plugins/ppapi/plugin_delegate.h"
17 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" 17 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h"
18 18
19 using WebKit::WebCanvas; 19 using WebKit::WebCanvas;
20 using WebKit::WebCompositionUnderline; 20 using WebKit::WebCompositionUnderline;
21 using WebKit::WebCursorInfo; 21 using WebKit::WebCursorInfo;
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 WebWidget* RenderWidgetFullscreenPepper::CreateWebWidget() { 325 WebWidget* RenderWidgetFullscreenPepper::CreateWebWidget() {
326 return new PepperWidget(plugin_, this); 326 return new PepperWidget(plugin_, this);
327 } 327 }
328 328
329 bool RenderWidgetFullscreenPepper::SupportsAsynchronousSwapBuffers() { 329 bool RenderWidgetFullscreenPepper::SupportsAsynchronousSwapBuffers() {
330 return context_ != NULL; 330 return context_ != NULL;
331 } 331 }
332 332
333 void RenderWidgetFullscreenPepper::CreateContext() { 333 void RenderWidgetFullscreenPepper::CreateContext() {
334 DCHECK(!context_); 334 DCHECK(!context_);
335 RenderThread* render_thread = RenderThread::current(); 335 RenderThreadImpl* render_thread = RenderThreadImpl::current();
336 DCHECK(render_thread);
337 GpuChannelHost* host = render_thread->EstablishGpuChannelSync( 336 GpuChannelHost* host = render_thread->EstablishGpuChannelSync(
338 content::CAUSE_FOR_GPU_LAUNCH_RENDERWIDGETFULLSCREENPEPPER_CREATECONTEXT); 337 content::CAUSE_FOR_GPU_LAUNCH_RENDERWIDGETFULLSCREENPEPPER_CREATECONTEXT);
339 if (!host) 338 if (!host)
340 return; 339 return;
341 const int32 attribs[] = { 340 const int32 attribs[] = {
342 RendererGLContext::ALPHA_SIZE, 8, 341 RendererGLContext::ALPHA_SIZE, 8,
343 RendererGLContext::DEPTH_SIZE, 0, 342 RendererGLContext::DEPTH_SIZE, 0,
344 RendererGLContext::STENCIL_SIZE, 0, 343 RendererGLContext::STENCIL_SIZE, 0,
345 RendererGLContext::SAMPLES, 0, 344 RendererGLContext::SAMPLES, 0,
346 RendererGLContext::SAMPLE_BUFFERS, 0, 345 RendererGLContext::SAMPLE_BUFFERS, 0,
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 context_ = NULL; 493 context_ = NULL;
495 program_ = 0; 494 program_ = 0;
496 buffer_ = 0; 495 buffer_ = 0;
497 OnSwapBuffersAborted(); 496 OnSwapBuffersAborted();
498 CheckCompositing(); 497 CheckCompositing();
499 } 498 }
500 499
501 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { 500 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() {
502 OnSwapBuffersComplete(); 501 OnSwapBuffersComplete();
503 } 502 }
OLDNEW
« no previous file with comments | « content/renderer/render_widget_fullscreen.cc ('k') | content/renderer/renderer_glue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698