| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // BrowserViewRenderer overrides | 54 // BrowserViewRenderer overrides |
| 55 virtual bool OnDraw(jobject java_canvas, | 55 virtual bool OnDraw(jobject java_canvas, |
| 56 bool is_hardware_canvas, | 56 bool is_hardware_canvas, |
| 57 const gfx::Vector2d& scroll_, | 57 const gfx::Vector2d& scroll_, |
| 58 const gfx::Rect& clip) OVERRIDE; | 58 const gfx::Rect& clip) OVERRIDE; |
| 59 virtual void DrawGL(AwDrawGLInfo* draw_info) OVERRIDE; | 59 virtual void DrawGL(AwDrawGLInfo* draw_info) OVERRIDE; |
| 60 virtual void SetGlobalVisibleRect(const gfx::Rect& visible_rect) OVERRIDE; | 60 virtual void SetGlobalVisibleRect(const gfx::Rect& visible_rect) OVERRIDE; |
| 61 virtual skia::RefPtr<SkPicture> CapturePicture(int width, | 61 virtual skia::RefPtr<SkPicture> CapturePicture(int width, |
| 62 int height) OVERRIDE; | 62 int height) OVERRIDE; |
| 63 virtual void EnableOnNewPicture(bool enabled) OVERRIDE; | 63 virtual void EnableOnNewPicture(bool enabled) OVERRIDE; |
| 64 virtual void ClearView() OVERRIDE; |
| 64 virtual void SetIsPaused(bool paused) OVERRIDE; | 65 virtual void SetIsPaused(bool paused) OVERRIDE; |
| 65 virtual void SetViewVisibility(bool visible) OVERRIDE; | 66 virtual void SetViewVisibility(bool visible) OVERRIDE; |
| 66 virtual void SetWindowVisibility(bool visible) OVERRIDE; | 67 virtual void SetWindowVisibility(bool visible) OVERRIDE; |
| 67 virtual void OnSizeChanged(int width, int height) OVERRIDE; | 68 virtual void OnSizeChanged(int width, int height) OVERRIDE; |
| 68 virtual void ScrollTo(gfx::Vector2d new_value) OVERRIDE; | 69 virtual void ScrollTo(gfx::Vector2d new_value) OVERRIDE; |
| 69 virtual void OnAttachedToWindow(int width, int height) OVERRIDE; | 70 virtual void OnAttachedToWindow(int width, int height) OVERRIDE; |
| 70 virtual void OnDetachedFromWindow() OVERRIDE; | 71 virtual void OnDetachedFromWindow() OVERRIDE; |
| 71 virtual void SetDipScale(float dip_scale) OVERRIDE; | 72 virtual void SetDipScale(float dip_scale) OVERRIDE; |
| 72 virtual bool IsAttachedToWindow() OVERRIDE; | 73 virtual bool IsAttachedToWindow() OVERRIDE; |
| 73 virtual bool IsVisible() OVERRIDE; | 74 virtual bool IsVisible() OVERRIDE; |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 content::WebContents* web_contents_; | 131 content::WebContents* web_contents_; |
| 131 content::SynchronousCompositor* compositor_; | 132 content::SynchronousCompositor* compositor_; |
| 132 | 133 |
| 133 bool is_paused_; | 134 bool is_paused_; |
| 134 bool view_visible_; | 135 bool view_visible_; |
| 135 bool window_visible_; // Only applicable if |attached_to_window_| is true. | 136 bool window_visible_; // Only applicable if |attached_to_window_| is true. |
| 136 bool attached_to_window_; | 137 bool attached_to_window_; |
| 137 float dip_scale_; | 138 float dip_scale_; |
| 138 float page_scale_factor_; | 139 float page_scale_factor_; |
| 139 bool on_new_picture_enable_; | 140 bool on_new_picture_enable_; |
| 141 bool clear_view_; |
| 140 | 142 |
| 141 // When true, we should continuously invalidate and keep drawing, for example | 143 // When true, we should continuously invalidate and keep drawing, for example |
| 142 // to drive animation. This value is set by the compositor and should always | 144 // to drive animation. This value is set by the compositor and should always |
| 143 // reflect the expectation of the compositor and not be reused for other | 145 // reflect the expectation of the compositor and not be reused for other |
| 144 // states. | 146 // states. |
| 145 bool compositor_needs_continuous_invalidate_; | 147 bool compositor_needs_continuous_invalidate_; |
| 146 | 148 |
| 147 // Used to block additional invalidates while one is already pending or before | 149 // Used to block additional invalidates while one is already pending or before |
| 148 // compositor draw which may switch continuous_invalidate on and off in the | 150 // compositor draw which may switch continuous_invalidate on and off in the |
| 149 // process. | 151 // process. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 GLViewRendererManager::Key manager_key_; | 185 GLViewRendererManager::Key manager_key_; |
| 184 | 186 |
| 185 content::SynchronousCompositorMemoryPolicy memory_policy_; | 187 content::SynchronousCompositorMemoryPolicy memory_policy_; |
| 186 | 188 |
| 187 DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer); | 189 DISALLOW_COPY_AND_ASSIGN(InProcessViewRenderer); |
| 188 }; | 190 }; |
| 189 | 191 |
| 190 } // namespace android_webview | 192 } // namespace android_webview |
| 191 | 193 |
| 192 #endif // ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ | 194 #endif // ANDROID_WEBVIEW_BROWSER_IN_PROCESS_VIEW_RENDERER_H_ |
| OLD | NEW |