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 14 matching lines...) Expand all Loading... |
25 void ParentOutputSurface::EnsureBackbuffer() {} | 25 void ParentOutputSurface::EnsureBackbuffer() {} |
26 | 26 |
27 void ParentOutputSurface::DiscardBackbuffer() { | 27 void ParentOutputSurface::DiscardBackbuffer() { |
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::SetDrawRectangle(const gfx::Rect& rect) {} |
| 36 |
35 void ParentOutputSurface::Reshape(const gfx::Size& size, | 37 void ParentOutputSurface::Reshape(const gfx::Size& size, |
36 float scale_factor, | 38 float scale_factor, |
37 const gfx::ColorSpace& color_space, | 39 const gfx::ColorSpace& color_space, |
38 bool has_alpha, | 40 bool has_alpha, |
39 bool use_stencil) {} | 41 bool use_stencil) {} |
40 | 42 |
41 void ParentOutputSurface::SwapBuffers(cc::OutputSurfaceFrame frame) { | 43 void ParentOutputSurface::SwapBuffers(cc::OutputSurfaceFrame frame) { |
42 context_provider_->ContextGL()->ShallowFlushCHROMIUM(); | 44 context_provider_->ContextGL()->ShallowFlushCHROMIUM(); |
43 } | 45 } |
44 | 46 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 87 |
86 unsigned ParentOutputSurface::GetOverlayTextureId() const { | 88 unsigned ParentOutputSurface::GetOverlayTextureId() const { |
87 return 0; | 89 return 0; |
88 } | 90 } |
89 | 91 |
90 bool ParentOutputSurface::SurfaceIsSuspendForRecycle() const { | 92 bool ParentOutputSurface::SurfaceIsSuspendForRecycle() const { |
91 return false; | 93 return false; |
92 } | 94 } |
93 | 95 |
94 } // namespace android_webview | 96 } // namespace android_webview |
OLD | NEW |