| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_IN_PROCESS_VIEW_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "android_webview/browser/browser_view_renderer.h" | 10 #include "android_webview/browser/browser_view_renderer.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 virtual void SetViewVisibility(bool visible) OVERRIDE; | 64 virtual void SetViewVisibility(bool visible) OVERRIDE; |
| 65 virtual void SetWindowVisibility(bool visible) OVERRIDE; | 65 virtual void SetWindowVisibility(bool visible) OVERRIDE; |
| 66 virtual void OnSizeChanged(int width, int height) OVERRIDE; | 66 virtual void OnSizeChanged(int width, int height) OVERRIDE; |
| 67 virtual void ScrollTo(gfx::Vector2d new_value) OVERRIDE; | 67 virtual void ScrollTo(gfx::Vector2d new_value) OVERRIDE; |
| 68 virtual void OnAttachedToWindow(int width, int height) OVERRIDE; | 68 virtual void OnAttachedToWindow(int width, int height) OVERRIDE; |
| 69 virtual void OnDetachedFromWindow() OVERRIDE; | 69 virtual void OnDetachedFromWindow() OVERRIDE; |
| 70 virtual void SetDipScale(float dip_scale) OVERRIDE; | 70 virtual void SetDipScale(float dip_scale) OVERRIDE; |
| 71 virtual bool IsAttachedToWindow() OVERRIDE; | 71 virtual bool IsAttachedToWindow() OVERRIDE; |
| 72 virtual bool IsVisible() OVERRIDE; | 72 virtual bool IsVisible() OVERRIDE; |
| 73 virtual gfx::Rect GetScreenRect() OVERRIDE; | 73 virtual gfx::Rect GetScreenRect() OVERRIDE; |
| 74 virtual void TrimMemory(int level) OVERRIDE; |
| 74 | 75 |
| 75 // SynchronousCompositorClient overrides | 76 // SynchronousCompositorClient overrides |
| 76 virtual void DidInitializeCompositor( | 77 virtual void DidInitializeCompositor( |
| 77 content::SynchronousCompositor* compositor) OVERRIDE; | 78 content::SynchronousCompositor* compositor) OVERRIDE; |
| 78 virtual void DidDestroyCompositor( | 79 virtual void DidDestroyCompositor( |
| 79 content::SynchronousCompositor* compositor) OVERRIDE; | 80 content::SynchronousCompositor* compositor) OVERRIDE; |
| 80 virtual void SetContinuousInvalidate(bool invalidate) OVERRIDE; | 81 virtual void SetContinuousInvalidate(bool invalidate) OVERRIDE; |
| 81 virtual void SetMaxRootLayerScrollOffset(gfx::Vector2dF new_value) OVERRIDE; | 82 virtual void SetMaxRootLayerScrollOffset(gfx::Vector2dF new_value) OVERRIDE; |
| 82 virtual void SetTotalRootLayerScrollOffset( | 83 virtual void SetTotalRootLayerScrollOffset( |
| 83 gfx::Vector2dF new_value_css) OVERRIDE; | 84 gfx::Vector2dF new_value_css) OVERRIDE; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 101 bool invalidate_ignore_compositor); | 102 bool invalidate_ignore_compositor); |
| 102 bool DrawSWInternal(jobject java_canvas, | 103 bool DrawSWInternal(jobject java_canvas, |
| 103 const gfx::Rect& clip_bounds); | 104 const gfx::Rect& clip_bounds); |
| 104 bool CompositeSW(SkCanvas* canvas); | 105 bool CompositeSW(SkCanvas* canvas); |
| 105 | 106 |
| 106 void UpdateCachedGlobalVisibleRect(); | 107 void UpdateCachedGlobalVisibleRect(); |
| 107 | 108 |
| 108 // If we call up view invalidate and OnDraw is not called before a deadline, | 109 // If we call up view invalidate and OnDraw is not called before a deadline, |
| 109 // then we keep ticking the SynchronousCompositor so it can make progress. | 110 // then we keep ticking the SynchronousCompositor so it can make progress. |
| 110 void FallbackTickFired(); | 111 void FallbackTickFired(); |
| 112 void ForceCompositeSW(); |
| 111 | 113 |
| 112 void NoLongerExpectsDrawGL(); | 114 void NoLongerExpectsDrawGL(); |
| 113 | 115 |
| 114 bool InitializeHwDraw(); | 116 bool InitializeHwDraw(); |
| 115 | 117 |
| 116 gfx::Vector2d max_scroll_offset() const; | 118 gfx::Vector2d max_scroll_offset() const; |
| 117 | 119 |
| 118 // For debug tracing or logging. Return the string representation of this | 120 // For debug tracing or logging. Return the string representation of this |
| 119 // view renderer's state and the |draw_info| if provided. | 121 // view renderer's state and the |draw_info| if provided. |
| 120 std::string ToString(AwDrawGLInfo* draw_info) const; | 122 std::string ToString(AwDrawGLInfo* draw_info) const; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 gfx::Vector2dF overscroll_rounding_error_; | 177 gfx::Vector2dF overscroll_rounding_error_; |
| 176 | 178 |
| 177 GLViewRendererManager::Key manager_key_; | 179 GLViewRendererManager::Key manager_key_; |
| 178 | 180 |
| 179 DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer); | 181 DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer); |
| 180 }; | 182 }; |
| 181 | 183 |
| 182 } // namespace android_webview | 184 } // namespace android_webview |
| 183 | 185 |
| 184 #endif // ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ | 186 #endif // ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ |
| OLD | NEW |