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 #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" |
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 RendererGLContext::ALPHA_SIZE, 8, | 339 RendererGLContext::ALPHA_SIZE, 8, |
340 RendererGLContext::DEPTH_SIZE, 0, | 340 RendererGLContext::DEPTH_SIZE, 0, |
341 RendererGLContext::STENCIL_SIZE, 0, | 341 RendererGLContext::STENCIL_SIZE, 0, |
342 RendererGLContext::SAMPLES, 0, | 342 RendererGLContext::SAMPLES, 0, |
343 RendererGLContext::SAMPLE_BUFFERS, 0, | 343 RendererGLContext::SAMPLE_BUFFERS, 0, |
344 RendererGLContext::NONE, | 344 RendererGLContext::NONE, |
345 }; | 345 }; |
346 context_ = RendererGLContext::CreateViewContext( | 346 context_ = RendererGLContext::CreateViewContext( |
347 host, | 347 host, |
348 routing_id(), | 348 routing_id(), |
| 349 false, |
349 NULL, | 350 NULL, |
350 "GL_OES_packed_depth_stencil GL_OES_depth24", | 351 "GL_OES_packed_depth_stencil GL_OES_depth24", |
351 attribs, | 352 attribs, |
352 active_url_); | 353 active_url_); |
353 if (!context_) | 354 if (!context_) |
354 return; | 355 return; |
355 | 356 |
356 if (!InitContext()) { | 357 if (!InitContext()) { |
357 DestroyContext(context_, program_, buffer_); | 358 DestroyContext(context_, program_, buffer_); |
358 context_ = NULL; | 359 context_ = NULL; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); | 487 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); |
487 context_ = NULL; | 488 context_ = NULL; |
488 program_ = 0; | 489 program_ = 0; |
489 buffer_ = 0; | 490 buffer_ = 0; |
490 OnSwapBuffersAborted(); | 491 OnSwapBuffersAborted(); |
491 } | 492 } |
492 | 493 |
493 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { | 494 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { |
494 OnSwapBuffersComplete(); | 495 OnSwapBuffersComplete(); |
495 } | 496 } |
OLD | NEW |