| OLD | NEW |
| 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 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 bool initialize_failed_; | 484 bool initialize_failed_; |
| 485 | 485 |
| 486 // The context we use for OpenGL rendering. | 486 // The context we use for OpenGL rendering. |
| 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 surface_id_; |
| 495 | 495 |
| 496 bool render_directly_to_web_view_; | 496 bool render_directly_to_web_view_; |
| 497 | 497 |
| 498 // 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. | 499 // This is only set when the context is bound to the main thread. |
| 500 WebKit::WebView* web_view_; | 500 WebKit::WebView* web_view_; |
| 501 | 501 |
| 502 #if defined(OS_MACOSX) | 502 #if defined(OS_MACOSX) |
| 503 // "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. |
| 504 gfx::PluginWindowHandle plugin_handle_; | 504 gfx::PluginWindowHandle plugin_handle_; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 524 #ifdef FLIP_FRAMEBUFFER_VERTICALLY | 524 #ifdef FLIP_FRAMEBUFFER_VERTICALLY |
| 525 scoped_array<uint8> scanline_; | 525 scoped_array<uint8> scanline_; |
| 526 void FlipVertically(uint8* framebuffer, | 526 void FlipVertically(uint8* framebuffer, |
| 527 unsigned int width, | 527 unsigned int width, |
| 528 unsigned int height); | 528 unsigned int height); |
| 529 #endif | 529 #endif |
| 530 }; | 530 }; |
| 531 | 531 |
| 532 #endif // defined(ENABLE_GPU) | 532 #endif // defined(ENABLE_GPU) |
| 533 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ | 533 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ |
| OLD | NEW |