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

Unified Diff: android_webview/browser/parent_output_surface.cc

Issue 2329623003: cc: Remove unneeded methods from OutputSurface. (Closed)
Patch Set: superandroid Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: android_webview/browser/parent_output_surface.cc
diff --git a/android_webview/browser/parent_output_surface.cc b/android_webview/browser/parent_output_surface.cc
index 79b855d7045e50cd6773734bc634ee00983d6454..293683cd3f5045881b549a98dab0f7a078ec6371 100644
--- a/android_webview/browser/parent_output_surface.cc
+++ b/android_webview/browser/parent_output_surface.cc
@@ -37,6 +37,10 @@ void ParentOutputSurface::SwapBuffers(cc::CompositorFrame frame) {
context_provider_->ContextGL()->ShallowFlushCHROMIUM();
}
+bool ParentOutputSurface::HasExternalStencilTest() const {
+ return stencil_state_.stencil_test_enabled;
+}
+
void ParentOutputSurface::ApplyExternalStencil() {
DCHECK(stencil_state_.stencil_test_enabled);
gpu::gles2::GLES2Interface* gl = context_provider()->ContextGL();
@@ -63,7 +67,6 @@ uint32_t ParentOutputSurface::GetFramebufferCopyTextureFormat() {
void ParentOutputSurface::SetGLState(const ScopedAppGLStateRestore& gl_state) {
stencil_state_ = gl_state.stencil_state();
- SetExternalStencilTest(stencil_state_.stencil_test_enabled);
}
} // namespace android_webview
« no previous file with comments | « android_webview/browser/parent_output_surface.h ('k') | blimp/client/core/compositor/delegated_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698