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

Unified Diff: android_webview/browser/parent_output_surface.h

Issue 1564703005: Implement external stencil for Android WebView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, fix pixel tests Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/parent_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/parent_output_surface.h
diff --git a/android_webview/browser/parent_output_surface.h b/android_webview/browser/parent_output_surface.h
index 0467f2ace6ae3076dd4b346c61ea71ffa96d83ad..f69598e17ae41daba65c230b8a565b23ab9f9f3e 100644
--- a/android_webview/browser/parent_output_surface.h
+++ b/android_webview/browser/parent_output_surface.h
@@ -5,6 +5,7 @@
#ifndef ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_
#define ANDROID_WEBVIEW_BROWSER_PARENT_OUTPUT_SURFACE_H_
+#include "android_webview/browser/scoped_app_gl_state_restore.h"
#include "base/macros.h"
#include "cc/output/output_surface.h"
@@ -22,9 +23,13 @@ class ParentOutputSurface : NON_EXPORTED_BASE(public cc::OutputSurface) {
float scale_factor,
bool has_alpha) override;
void SwapBuffers(cc::CompositorFrame* frame) override;
- using cc::OutputSurface::SetExternalStencilTest;
+ void ApplyExternalStencil() override;
+
+ void SetGLState(const ScopedAppGLStateRestore& gl_state);
private:
+ StencilState stencil_state_;
+
DISALLOW_COPY_AND_ASSIGN(ParentOutputSurface);
};
« no previous file with comments | « android_webview/browser/hardware_renderer.cc ('k') | android_webview/browser/parent_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698