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

Side by Side Diff: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.h

Issue 9160012: Change PluginWindowHandle to AcceleratedWidget in ui/gfx/gl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oops mac Created 8 years, 10 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 5 #ifndef WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 6 #define WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 // instead of going through WebGraphicsContext3D. 474 // instead of going through WebGraphicsContext3D.
475 void ClearContext(); 475 void ClearContext();
476 476
477 // The context we use for OpenGL rendering. 477 // The context we use for OpenGL rendering.
478 GLInProcessContext* context_; 478 GLInProcessContext* context_;
479 // The GLES2Implementation we use for OpenGL rendering. 479 // The GLES2Implementation we use for OpenGL rendering.
480 ::gpu::gles2::GLES2Implementation* gl_; 480 ::gpu::gles2::GLES2Implementation* gl_;
481 481
482 // If rendering directly to WebView, weak pointer to it. 482 // If rendering directly to WebView, weak pointer to it.
483 WebKit::WebView* web_view_; 483 WebKit::WebView* web_view_;
484 #if defined(OS_MACOSX)
485 // "Fake" plugin window handle in browser process for the compositor's output.
486 gfx::PluginWindowHandle plugin_handle_;
487 #endif
488 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_; 484 WebGraphicsContext3D::WebGraphicsContextLostCallback* context_lost_callback_;
489 WGC3Denum context_lost_reason_; 485 WGC3Denum context_lost_reason_;
490 486
491 WebKit::WebGraphicsContext3D::Attributes attributes_; 487 WebKit::WebGraphicsContext3D::Attributes attributes_;
492 int cached_width_, cached_height_; 488 int cached_width_, cached_height_;
493 489
494 // For tracking which FBO is bound. 490 // For tracking which FBO is bound.
495 WebGLId bound_fbo_; 491 WebGLId bound_fbo_;
496 492
497 // Errors raised by synthesizeGLError(). 493 // Errors raised by synthesizeGLError().
498 std::vector<WGC3Denum> synthetic_errors_; 494 std::vector<WGC3Denum> synthetic_errors_;
499 495
500 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 496 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
501 scoped_array<uint8> scanline_; 497 scoped_array<uint8> scanline_;
502 void FlipVertically(uint8* framebuffer, 498 void FlipVertically(uint8* framebuffer,
503 unsigned int width, 499 unsigned int width,
504 unsigned int height); 500 unsigned int height);
505 #endif 501 #endif
506 }; 502 };
507 503
508 } // namespace gpu 504 } // namespace gpu
509 } // namespace webkit 505 } // namespace webkit
510 506
511 #endif // defined(ENABLE_GPU) 507 #endif // defined(ENABLE_GPU)
512 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_ 508 #endif // WEBKIT_GPU_WEBGRAPHICSCONTEXT3D_IN_PROCESS_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « ui/gfx/native_widget_types.h ('k') | webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698