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 NULL, |
349 "GL_OES_packed_depth_stencil GL_OES_depth24", | 350 "GL_OES_packed_depth_stencil GL_OES_depth24", |
350 attribs, | 351 attribs, |
351 active_url_); | 352 active_url_); |
352 if (!context_) | 353 if (!context_) |
353 return; | 354 return; |
354 | 355 |
355 if (!InitContext()) { | 356 if (!InitContext()) { |
356 DestroyContext(context_, program_, buffer_); | 357 DestroyContext(context_, program_, buffer_); |
357 context_ = NULL; | 358 context_ = NULL; |
358 return; | 359 return; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); | 486 NewRunnableFunction(DestroyContext, context_, program_, buffer_)); |
486 context_ = NULL; | 487 context_ = NULL; |
487 program_ = 0; | 488 program_ = 0; |
488 buffer_ = 0; | 489 buffer_ = 0; |
489 OnSwapBuffersAborted(); | 490 OnSwapBuffersAborted(); |
490 } | 491 } |
491 | 492 |
492 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { | 493 void RenderWidgetFullscreenPepper::OnSwapBuffersCompleteByRendererGLContext() { |
493 OnSwapBuffersComplete(); | 494 OnSwapBuffersComplete(); |
494 } | 495 } |
OLD | NEW |