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

Side by Side Diff: cc/trees/thread_proxy.h

Issue 1394263004: android webview: allow cc to fail hardware draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: damage before hardware to avoid invalidate-draw loop Created 5 years, 2 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
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_TREES_THREAD_PROXY_H_ 5 #ifndef CC_TREES_THREAD_PROXY_H_
6 #define CC_TREES_THREAD_PROXY_H_ 6 #define CC_TREES_THREAD_PROXY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 // LayerTreeHostImplClient implementation 198 // LayerTreeHostImplClient implementation
199 void UpdateRendererCapabilitiesOnImplThread() override; 199 void UpdateRendererCapabilitiesOnImplThread() override;
200 void DidLoseOutputSurfaceOnImplThread() override; 200 void DidLoseOutputSurfaceOnImplThread() override;
201 void CommitVSyncParameters(base::TimeTicks timebase, 201 void CommitVSyncParameters(base::TimeTicks timebase,
202 base::TimeDelta interval) override; 202 base::TimeDelta interval) override;
203 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 203 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
204 void SetMaxSwapsPendingOnImplThread(int max) override; 204 void SetMaxSwapsPendingOnImplThread(int max) override;
205 void DidSwapBuffersOnImplThread() override; 205 void DidSwapBuffersOnImplThread() override;
206 void DidSwapBuffersCompleteOnImplThread() override; 206 void DidSwapBuffersCompleteOnImplThread() override;
207 void OnResourcelessSoftareDrawStateChanged(bool resourceless_draw) override;
207 void OnCanDrawStateChanged(bool can_draw) override; 208 void OnCanDrawStateChanged(bool can_draw) override;
208 void NotifyReadyToActivate() override; 209 void NotifyReadyToActivate() override;
209 void NotifyReadyToDraw() override; 210 void NotifyReadyToDraw() override;
210 // Please call these 3 functions through 211 // Please call these 3 functions through
211 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 212 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
212 // SetNeedsAnimate(). 213 // SetNeedsAnimate().
213 void SetNeedsRedrawOnImplThread() override; 214 void SetNeedsRedrawOnImplThread() override;
214 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 215 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
215 void SetNeedsAnimateOnImplThread() override; 216 void SetNeedsAnimateOnImplThread() override;
216 void SetNeedsPrepareTilesOnImplThread() override; 217 void SetNeedsPrepareTilesOnImplThread() override;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 334
334 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_; 335 base::WeakPtr<ThreadProxy> main_thread_weak_ptr_;
335 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_; 336 base::WeakPtr<ThreadProxy> impl_thread_weak_ptr_;
336 337
337 DISALLOW_COPY_AND_ASSIGN(ThreadProxy); 338 DISALLOW_COPY_AND_ASSIGN(ThreadProxy);
338 }; 339 };
339 340
340 } // namespace cc 341 } // namespace cc
341 342
342 #endif // CC_TREES_THREAD_PROXY_H_ 343 #endif // CC_TREES_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698