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

Side by Side Diff: android_webview/browser/render_thread_manager.h

Issue 1882623002: aw: Quick workaround for functor detach crash/hang (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: pesky boolean conditions Created 4 years, 8 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 | « no previous file | android_webview/browser/render_thread_manager.cc » ('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 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
6 #define ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "android_webview/browser/gl_view_renderer_manager.h" 10 #include "android_webview/browser/gl_view_renderer_manager.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 explicit InsideHardwareReleaseReset( 78 explicit InsideHardwareReleaseReset(
79 RenderThreadManager* render_thread_manager); 79 RenderThreadManager* render_thread_manager);
80 ~InsideHardwareReleaseReset(); 80 ~InsideHardwareReleaseReset();
81 81
82 private: 82 private:
83 RenderThreadManager* render_thread_manager_; 83 RenderThreadManager* render_thread_manager_;
84 }; 84 };
85 85
86 // RT thread method. 86 // RT thread method.
87 void DidDrawGLProcess(); 87 void DidDrawGLProcess();
88 bool HasFrameForHardwareRendererOnRT() const;
88 89
89 // UI thread methods. 90 // UI thread methods.
90 void ResetRequestDrawGLCallback(); 91 void ResetRequestDrawGLCallback();
91 void ClientRequestDrawGLOnUI(); 92 void ClientRequestDrawGLOnUI();
92 void UpdateParentDrawConstraintsOnUI(); 93 void UpdateParentDrawConstraintsOnUI();
93 bool IsInsideHardwareRelease() const; 94 bool IsInsideHardwareRelease() const;
94 void SetInsideHardwareRelease(bool inside); 95 void SetInsideHardwareRelease(bool inside);
95 96
96 // Accessed by UI thread. 97 // Accessed by UI thread.
97 scoped_refptr<base::SingleThreadTaskRunner> ui_loop_; 98 scoped_refptr<base::SingleThreadTaskRunner> ui_loop_;
(...skipping 18 matching lines...) Expand all
116 base::Closure request_draw_gl_closure_; 117 base::Closure request_draw_gl_closure_;
117 118
118 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_; 119 base::WeakPtrFactory<RenderThreadManager> weak_factory_on_ui_thread_;
119 120
120 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager); 121 DISALLOW_COPY_AND_ASSIGN(RenderThreadManager);
121 }; 122 };
122 123
123 } // namespace android_webview 124 } // namespace android_webview
124 125
125 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_ 126 #endif // ANDROID_WEBVIEW_BROWSER_RENDER_THREAD_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/render_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698