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

Side by Side Diff: cc/trees/layer_tree_host_impl.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/test/fake_output_surface.h ('k') | cc/trees/layer_tree_host_impl.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_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 class LayerTreeHostImplClient { 89 class LayerTreeHostImplClient {
90 public: 90 public:
91 virtual void UpdateRendererCapabilitiesOnImplThread() = 0; 91 virtual void UpdateRendererCapabilitiesOnImplThread() = 0;
92 virtual void DidLoseOutputSurfaceOnImplThread() = 0; 92 virtual void DidLoseOutputSurfaceOnImplThread() = 0;
93 virtual void CommitVSyncParameters(base::TimeTicks timebase, 93 virtual void CommitVSyncParameters(base::TimeTicks timebase,
94 base::TimeDelta interval) = 0; 94 base::TimeDelta interval) = 0;
95 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0; 95 virtual void SetEstimatedParentDrawTime(base::TimeDelta draw_time) = 0;
96 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0; 96 virtual void SetMaxSwapsPendingOnImplThread(int max) = 0;
97 virtual void DidSwapBuffersOnImplThread() = 0; 97 virtual void DidSwapBuffersOnImplThread() = 0;
98 virtual void DidSwapBuffersCompleteOnImplThread() = 0; 98 virtual void DidSwapBuffersCompleteOnImplThread() = 0;
99 virtual void OnResourcelessSoftareDrawStateChanged(
100 bool resourceless_draw) = 0;
99 virtual void OnCanDrawStateChanged(bool can_draw) = 0; 101 virtual void OnCanDrawStateChanged(bool can_draw) = 0;
100 virtual void NotifyReadyToActivate() = 0; 102 virtual void NotifyReadyToActivate() = 0;
101 virtual void NotifyReadyToDraw() = 0; 103 virtual void NotifyReadyToDraw() = 0;
102 // Please call these 3 functions through 104 // Please call these 3 functions through
103 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 105 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
104 // SetNeedsAnimate(). 106 // SetNeedsAnimate().
105 virtual void SetNeedsRedrawOnImplThread() = 0; 107 virtual void SetNeedsRedrawOnImplThread() = 0;
106 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0; 108 virtual void SetNeedsRedrawRectOnImplThread(const gfx::Rect& damage_rect) = 0;
107 virtual void SetNeedsAnimateOnImplThread() = 0; 109 virtual void SetNeedsAnimateOnImplThread() = 0;
108 virtual void SetNeedsCommitOnImplThread() = 0; 110 virtual void SetNeedsCommitOnImplThread() = 0;
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after
819 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 821 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
820 822
821 scoped_ptr<Viewport> viewport_; 823 scoped_ptr<Viewport> viewport_;
822 824
823 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 825 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
824 }; 826 };
825 827
826 } // namespace cc 828 } // namespace cc
827 829
828 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 830 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698