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

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

Issue 8163008: Add command line switch for enabling threaded compositing (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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
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 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 RendererGLContext* context_; 457 RendererGLContext* context_;
458 // The GLES2Implementation we use for OpenGL rendering. 458 // The GLES2Implementation we use for OpenGL rendering.
459 gpu::gles2::GLES2Implementation* gl_; 459 gpu::gles2::GLES2Implementation* gl_;
460 460
461 // State needed by MaybeInitializeGL. 461 // State needed by MaybeInitializeGL.
462 GpuChannelHost* host_; 462 GpuChannelHost* host_;
463 GURL active_url_; 463 GURL active_url_;
464 int32 render_view_routing_id_; 464 int32 render_view_routing_id_;
465 465
466 bool render_directly_to_web_view_; 466 bool render_directly_to_web_view_;
467 #ifndef WTF_USE_THREADED_COMPOSITING
468 // If rendering directly to WebView, weak pointer to it. 467 // If rendering directly to WebView, weak pointer to it.
469 WebKit::WebView* web_view_; 468 WebKit::WebView* web_view_;
470 #endif 469
471 #if defined(OS_MACOSX) 470 #if defined(OS_MACOSX)
472 // "Fake" plugin window handle in browser process for the compositor's output. 471 // "Fake" plugin window handle in browser process for the compositor's output.
473 gfx::PluginWindowHandle plugin_handle_; 472 gfx::PluginWindowHandle plugin_handle_;
474 #endif 473 #endif
475 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_; 474 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_;
476 WGC3Denum context_lost_reason_; 475 WGC3Denum context_lost_reason_;
477 476
478 WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM* 477 WebGraphicsContext3D::WebGraphicsSwapBuffersCompleteCallbackCHROMIUM*
479 swapbuffers_complete_callback_; 478 swapbuffers_complete_callback_;
480 479
(...skipping 12 matching lines...) Expand all
493 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 492 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
494 scoped_array<uint8> scanline_; 493 scoped_array<uint8> scanline_;
495 void FlipVertically(uint8* framebuffer, 494 void FlipVertically(uint8* framebuffer,
496 unsigned int width, 495 unsigned int width,
497 unsigned int height); 496 unsigned int height);
498 #endif 497 #endif
499 }; 498 };
500 499
501 #endif // defined(ENABLE_GPU) 500 #endif // defined(ENABLE_GPU)
502 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 501 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698