| Index: android_webview/browser/hardware_renderer.h
|
| diff --git a/android_webview/browser/hardware_renderer.h b/android_webview/browser/hardware_renderer.h
|
| index 4f226d2890896b9e0ed32c477935a3efa89b2c6e..09580eb5f20e89883ad27e0e514b28585fae7c94 100644
|
| --- a/android_webview/browser/hardware_renderer.h
|
| +++ b/android_webview/browser/hardware_renderer.h
|
| @@ -9,7 +9,9 @@
|
|
|
| #include "android_webview/browser/gl_view_renderer_manager.h"
|
| #include "android_webview/browser/shared_renderer_state.h"
|
| +#include "base/lazy_instance.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/threading/thread_local.h"
|
| #include "content/public/browser/android/synchronous_compositor.h"
|
|
|
| struct AwDrawGLInfo;
|
| @@ -61,7 +63,7 @@ class ScopedAllowGL {
|
| static bool IsAllowed();
|
|
|
| private:
|
| - static bool allow_gl;
|
| + static base::LazyInstance<base::ThreadLocalBoolean> allow_gl;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ScopedAllowGL);
|
| };
|
|
|