Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Side by Side Diff: android_webview/browser/browser_view_renderer.h

Issue 348613004: aw: Fix hardware teardown race (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | android_webview/browser/shared_renderer_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/shared_renderer_state.h" 10 #include "android_webview/browser/shared_renderer_state.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void SetDipScale(float dip_scale); 101 void SetDipScale(float dip_scale);
102 102
103 // Set the root layer scroll offset to |new_value|. 103 // Set the root layer scroll offset to |new_value|.
104 void ScrollTo(gfx::Vector2d new_value); 104 void ScrollTo(gfx::Vector2d new_value);
105 105
106 // Android views hierarchy gluing. 106 // Android views hierarchy gluing.
107 bool IsAttachedToWindow() const; 107 bool IsAttachedToWindow() const;
108 bool IsVisible() const; 108 bool IsVisible() const;
109 gfx::Rect GetScreenRect() const; 109 gfx::Rect GetScreenRect() const;
110 110
111 bool hardware_enabled() const { return hardware_enabled_; }
hush (inactive) 2014/06/25 21:51:57 hmm... can you put the implementation in cc file?
boliu 2014/06/25 21:54:33 Simple accesstor for primitive types are allowed t
112
111 // Set the memory policy in shared renderer state and request the tiles from 113 // Set the memory policy in shared renderer state and request the tiles from
112 // GlobalTileManager. The actually amount of memory allowed by 114 // GlobalTileManager. The actually amount of memory allowed by
113 // GlobalTileManager may not be equal to what's requested in |policy|. 115 // GlobalTileManager may not be equal to what's requested in |policy|.
114 void RequestMemoryPolicy(content::SynchronousCompositorMemoryPolicy& policy); 116 void RequestMemoryPolicy(content::SynchronousCompositorMemoryPolicy& policy);
115 117
116 void TrimMemory(const int level, const bool visible); 118 void TrimMemory(const int level, const bool visible);
117 119
118 // SynchronousCompositorClient overrides 120 // SynchronousCompositorClient overrides
119 virtual void DidInitializeCompositor( 121 virtual void DidInitializeCompositor(
120 content::SynchronousCompositor* compositor) OVERRIDE; 122 content::SynchronousCompositor* compositor) OVERRIDE;
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 // policy on the shared_renderer_state_ atomically. 236 // policy on the shared_renderer_state_ atomically.
235 size_t num_tiles_; 237 size_t num_tiles_;
236 size_t num_bytes_; 238 size_t num_bytes_;
237 239
238 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer); 240 DISALLOW_COPY_AND_ASSIGN(BrowserViewRenderer);
239 }; 241 };
240 242
241 } // namespace android_webview 243 } // namespace android_webview
242 244
243 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 245 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/shared_renderer_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698