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

Side by Side Diff: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h

Issue 8490001: Don't call renderView methods in threaded mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years 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 | « no previous file | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.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 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 RendererGLContext* context_; 487 RendererGLContext* context_;
488 // The GLES2Implementation we use for OpenGL rendering. 488 // The GLES2Implementation we use for OpenGL rendering.
489 gpu::gles2::GLES2Implementation* gl_; 489 gpu::gles2::GLES2Implementation* gl_;
490 490
491 // State needed by MaybeInitializeGL. 491 // State needed by MaybeInitializeGL.
492 GpuChannelHost* host_; 492 GpuChannelHost* host_;
493 GURL active_url_; 493 GURL active_url_;
494 int32 render_view_routing_id_; 494 int32 render_view_routing_id_;
495 495
496 bool render_directly_to_web_view_; 496 bool render_directly_to_web_view_;
497
497 // If rendering directly to WebView, weak pointer to it. 498 // If rendering directly to WebView, weak pointer to it.
499 // This is only set when the context is bound to the main thread.
498 WebKit::WebView* web_view_; 500 WebKit::WebView* web_view_;
499 501
500 #if defined(OS_MACOSX) 502 #if defined(OS_MACOSX)
501 // "Fake" plugin window handle in browser process for the compositor's output. 503 // "Fake" plugin window handle in browser process for the compositor's output.
502 gfx::PluginWindowHandle plugin_handle_; 504 gfx::PluginWindowHandle plugin_handle_;
503 #endif 505 #endif
504 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_; 506 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_;
505 WGC3Denum context_lost_reason_; 507 WGC3Denum context_lost_reason_;
506 508
507 WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* 509 WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM*
(...skipping 14 matching lines...) Expand all
522 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 524 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
523 scoped_array<uint8> scanline_; 525 scoped_array<uint8> scanline_;
524 void FlipVertically(uint8* framebuffer, 526 void FlipVertically(uint8* framebuffer,
525 unsigned int width, 527 unsigned int width,
526 unsigned int height); 528 unsigned int height);
527 #endif 529 #endif
528 }; 530 };
529 531
530 #endif // defined(ENABLE_GPU) 532 #endif // defined(ENABLE_GPU)
531 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 533 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698