| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |