| 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_SHARED_RENDERER_STATE_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_H_ |
| 7 | 7 |
| 8 #include "android_webview/browser/parent_compositor_draw_constraints.h" | 8 #include "android_webview/browser/parent_compositor_draw_constraints.h" |
| 9 #include "base/cancelable_callback.h" | 9 #include "base/cancelable_callback.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // This class is used to pass data between UI thread and RenderThread. | 46 // This class is used to pass data between UI thread and RenderThread. |
| 47 class SharedRendererState { | 47 class SharedRendererState { |
| 48 public: | 48 public: |
| 49 SharedRendererState(scoped_refptr<base::MessageLoopProxy> ui_loop, | 49 SharedRendererState(scoped_refptr<base::MessageLoopProxy> ui_loop, |
| 50 BrowserViewRendererClient* client); | 50 BrowserViewRendererClient* client); |
| 51 ~SharedRendererState(); | 51 ~SharedRendererState(); |
| 52 | 52 |
| 53 void ClientRequestDrawGL(); | 53 void ClientRequestDrawGL(); |
| 54 void DidDrawGLProcess(); | 54 void DidDrawGLProcess(); |
| 55 | 55 |
| 56 bool HasDrawGLInput() const; |
| 56 void SetDrawGLInput(scoped_ptr<DrawGLInput> input); | 57 void SetDrawGLInput(scoped_ptr<DrawGLInput> input); |
| 57 scoped_ptr<DrawGLInput> PassDrawGLInput(); | 58 scoped_ptr<DrawGLInput> PassDrawGLInput(); |
| 58 | 59 |
| 59 bool IsInsideHardwareRelease() const; | 60 bool IsInsideHardwareRelease() const; |
| 60 void UpdateDrawConstraints( | 61 void UpdateDrawConstraints( |
| 61 const ParentCompositorDrawConstraints& parent_draw_constraints); | 62 const ParentCompositorDrawConstraints& parent_draw_constraints); |
| 62 void PostExternalDrawConstraintsToChildCompositor( | 63 void PostExternalDrawConstraintsToChildCompositor( |
| 63 const ParentCompositorDrawConstraints& parent_draw_constraints); | 64 const ParentCompositorDrawConstraints& parent_draw_constraints); |
| 64 | 65 |
| 65 const ParentCompositorDrawConstraints ParentDrawConstraints() const; | 66 const ParentCompositorDrawConstraints ParentDrawConstraints() const; |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 | 104 |
| 104 private: | 105 private: |
| 105 SharedRendererState* shared_renderer_state_; | 106 SharedRendererState* shared_renderer_state_; |
| 106 | 107 |
| 107 DISALLOW_COPY_AND_ASSIGN(InsideHardwareReleaseReset); | 108 DISALLOW_COPY_AND_ASSIGN(InsideHardwareReleaseReset); |
| 108 }; | 109 }; |
| 109 | 110 |
| 110 } // namespace android_webview | 111 } // namespace android_webview |
| 111 | 112 |
| 112 #endif // ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_H_ | 113 #endif // ANDROID_WEBVIEW_BROWSER_SHARED_RENDERER_STATE_H_ |
| OLD | NEW |