Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Side by Side Diff: android_webview/browser/parent_output_surface.cc

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: make sure overdraw_feedback_ is initialized and reset properly Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « android_webview/browser/parent_output_surface.h ('k') | cc/base/switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « android_webview/browser/parent_output_surface.h ('k') | cc/base/switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698