| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_BROWSER_VIEW_RENDERER_H_ | 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| 7 | 7 |
| 8 #include "android_webview/browser/global_tile_manager.h" | 8 #include "android_webview/browser/global_tile_manager.h" |
| 9 #include "android_webview/browser/global_tile_manager_client.h" | 9 #include "android_webview/browser/global_tile_manager_client.h" |
| 10 #include "android_webview/browser/parent_compositor_draw_constraints.h" | 10 #include "android_webview/browser/parent_compositor_draw_constraints.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 protected: | 54 protected: |
| 55 virtual ~BrowserViewRendererJavaHelper() {} | 55 virtual ~BrowserViewRendererJavaHelper() {} |
| 56 }; | 56 }; |
| 57 | 57 |
| 58 // Interface for all the WebView-specific content rendering operations. | 58 // Interface for all the WebView-specific content rendering operations. |
| 59 // Provides software and hardware rendering and the Capture Picture API. | 59 // Provides software and hardware rendering and the Capture Picture API. |
| 60 class BrowserViewRenderer : public content::SynchronousCompositorClient, | 60 class BrowserViewRenderer : public content::SynchronousCompositorClient, |
| 61 public GlobalTileManagerClient { | 61 public GlobalTileManagerClient { |
| 62 public: | 62 public: |
| 63 static void CalculateTileMemoryPolicy(bool use_zero_copy); | 63 static void CalculateTileMemoryPolicy(); |
| 64 | 64 |
| 65 BrowserViewRenderer( | 65 BrowserViewRenderer( |
| 66 BrowserViewRendererClient* client, | 66 BrowserViewRendererClient* client, |
| 67 SharedRendererState* shared_renderer_state, | 67 SharedRendererState* shared_renderer_state, |
| 68 content::WebContents* web_contents, | 68 content::WebContents* web_contents, |
| 69 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner); | 69 const scoped_refptr<base::SingleThreadTaskRunner>& ui_task_runner); |
| 70 | 70 |
| 71 virtual ~BrowserViewRenderer(); | 71 virtual ~BrowserViewRenderer(); |
| 72 | 72 |
| 73 // Main handler for view drawing: performs a SW draw immediately, or sets up | 73 // Main handler for view drawing: performs a SW draw immediately, or sets up |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 GlobalTileManager::Key tile_manager_key_; | 237 GlobalTileManager::Key tile_manager_key_; |
| 238 content::SynchronousCompositorMemoryPolicy memory_policy_; | 238 content::SynchronousCompositorMemoryPolicy memory_policy_; |
| 239 | 239 |
| 240 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); | 240 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 } // namespace android_webview | 243 } // namespace android_webview |
| 244 | 244 |
| 245 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ | 245 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ |
| OLD | NEW |