| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "android_webview/browser/parent_output_surface.h" | 5 #include "android_webview/browser/parent_output_surface.h" |
| 6 | 6 |
| 7 #include "android_webview/browser/aw_render_thread_context_provider.h" | 7 #include "android_webview/browser/aw_render_thread_context_provider.h" |
| 8 #include "android_webview/browser/scoped_app_gl_state_restore.h" | 8 #include "android_webview/browser/scoped_app_gl_state_restore.h" |
| 9 #include "cc/output/output_surface_client.h" | 9 #include "cc/output/output_surface_client.h" |
| 10 #include "cc/output/output_surface_frame.h" | 10 #include "cc/output/output_surface_frame.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 context_provider()->ContextGL()->DiscardBackbufferCHROMIUM(); | 28 context_provider()->ContextGL()->DiscardBackbufferCHROMIUM(); |
| 29 } | 29 } |
| 30 | 30 |
| 31 void ParentOutputSurface::BindFramebuffer() { | 31 void ParentOutputSurface::BindFramebuffer() { |
| 32 context_provider()->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, 0); | 32 context_provider()->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER, 0); |
| 33 } | 33 } |
| 34 | 34 |
| 35 void ParentOutputSurface::Reshape(const gfx::Size& size, | 35 void ParentOutputSurface::Reshape(const gfx::Size& size, |
| 36 float scale_factor, | 36 float scale_factor, |
| 37 const gfx::ColorSpace& color_space, | 37 const gfx::ColorSpace& color_space, |
| 38 bool has_alpha) {} | 38 bool has_alpha, |
| 39 bool use_stencil) {} |
| 39 | 40 |
| 40 void ParentOutputSurface::SwapBuffers(cc::OutputSurfaceFrame frame) { | 41 void ParentOutputSurface::SwapBuffers(cc::OutputSurfaceFrame frame) { |
| 41 context_provider_->ContextGL()->ShallowFlushCHROMIUM(); | 42 context_provider_->ContextGL()->ShallowFlushCHROMIUM(); |
| 42 } | 43 } |
| 43 | 44 |
| 44 bool ParentOutputSurface::HasExternalStencilTest() const { | 45 bool ParentOutputSurface::HasExternalStencilTest() const { |
| 45 return ScopedAppGLStateRestore::Current() | 46 return ScopedAppGLStateRestore::Current() |
| 46 ->stencil_state() | 47 ->stencil_state() |
| 47 .stencil_test_enabled; | 48 .stencil_test_enabled; |
| 48 } | 49 } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 85 |
| 85 unsigned ParentOutputSurface::GetOverlayTextureId() const { | 86 unsigned ParentOutputSurface::GetOverlayTextureId() const { |
| 86 return 0; | 87 return 0; |
| 87 } | 88 } |
| 88 | 89 |
| 89 bool ParentOutputSurface::SurfaceIsSuspendForRecycle() const { | 90 bool ParentOutputSurface::SurfaceIsSuspendForRecycle() const { |
| 90 return false; | 91 return false; |
| 91 } | 92 } |
| 92 | 93 |
| 93 } // namespace android_webview | 94 } // namespace android_webview |
| OLD | NEW |