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

Unified Diff: android_webview/browser/scoped_app_gl_state_restore.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
Index: android_webview/browser/scoped_app_gl_state_restore.h
diff --git a/android_webview/browser/scoped_app_gl_state_restore.h b/android_webview/browser/scoped_app_gl_state_restore.h
index 7639884c6a6cf6b7a1dd724b632abf083367204a..f2356f7d5490090a907f3b2b83489aaf7a9536d8 100644
--- a/android_webview/browser/scoped_app_gl_state_restore.h
+++ b/android_webview/browser/scoped_app_gl_state_restore.h
@@ -17,6 +17,25 @@ namespace internal {
class ScopedAppGLStateRestoreImpl;
}
+struct StencilState {
+ unsigned char stencil_test_enabled;
+ int stencil_front_func;
+ int stencil_front_ref;
+ int stencil_front_mask;
+ int stencil_back_func;
+ int stencil_back_ref;
+ int stencil_back_mask;
+ int stencil_clear;
+ int stencil_front_writemask;
+ int stencil_back_writemask;
+ int stencil_front_fail_op;
+ int stencil_front_z_fail_op;
+ int stencil_front_z_pass_op;
+ int stencil_back_fail_op;
+ int stencil_back_z_fail_op;
+ int stencil_back_z_pass_op;
+};
+
// This class is not thread safe and should only be used on the UI thread.
class ScopedAppGLStateRestore {
public:
@@ -28,7 +47,7 @@ class ScopedAppGLStateRestore {
explicit ScopedAppGLStateRestore(CallMode mode);
~ScopedAppGLStateRestore();
- bool stencil_enabled() const;
+ StencilState stencil_state() const;
int framebuffer_binding_ext() const;
private:
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | android_webview/browser/scoped_app_gl_state_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698