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

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

Issue 672283003: cc: ReadyToDraw notifications. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix counting of required for activation tiles. Created 6 years, 1 month 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/layer_tree_host_unittest.cc ('k') | cc/trees/single_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_SINGLE_THREAD_PROXY_H_ 5 #ifndef CC_TREES_SINGLE_THREAD_PROXY_H_
6 #define CC_TREES_SINGLE_THREAD_PROXY_H_ 6 #define CC_TREES_SINGLE_THREAD_PROXY_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void UpdateRendererCapabilitiesOnImplThread() override; 80 void UpdateRendererCapabilitiesOnImplThread() override;
81 void DidLoseOutputSurfaceOnImplThread() override; 81 void DidLoseOutputSurfaceOnImplThread() override;
82 void CommitVSyncParameters(base::TimeTicks timebase, 82 void CommitVSyncParameters(base::TimeTicks timebase,
83 base::TimeDelta interval) override {} 83 base::TimeDelta interval) override {}
84 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {} 84 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override {}
85 void SetMaxSwapsPendingOnImplThread(int max) override {} 85 void SetMaxSwapsPendingOnImplThread(int max) override {}
86 void DidSwapBuffersOnImplThread() override; 86 void DidSwapBuffersOnImplThread() override;
87 void DidSwapBuffersCompleteOnImplThread() override; 87 void DidSwapBuffersCompleteOnImplThread() override;
88 void OnCanDrawStateChanged(bool can_draw) override; 88 void OnCanDrawStateChanged(bool can_draw) override;
89 void NotifyReadyToActivate() override; 89 void NotifyReadyToActivate() override;
90 void NotifyReadyToDraw() override;
90 void SetNeedsRedrawOnImplThread() override; 91 void SetNeedsRedrawOnImplThread() override;
91 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override; 92 void SetNeedsRedrawRectOnImplThread(const gfx::Rect& dirty_rect) override;
92 void SetNeedsAnimateOnImplThread() override; 93 void SetNeedsAnimateOnImplThread() override;
93 void SetNeedsManageTilesOnImplThread() override; 94 void SetNeedsManageTilesOnImplThread() override;
94 void DidInitializeVisibleTileOnImplThread() override; 95 void DidInitializeVisibleTileOnImplThread() override;
95 void SetNeedsCommitOnImplThread() override; 96 void SetNeedsCommitOnImplThread() override;
96 void PostAnimationEventsToMainThreadOnImplThread( 97 void PostAnimationEventsToMainThreadOnImplThread(
97 scoped_ptr<AnimationEventsVector> events) override; 98 scoped_ptr<AnimationEventsVector> events) override;
98 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes, 99 bool ReduceContentsTextureMemoryOnImplThread(size_t limit_bytes,
99 int priority_cutoff) override; 100 int priority_cutoff) override;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 private: 223 private:
223 DebugScopedSetImplThread impl_thread_; 224 DebugScopedSetImplThread impl_thread_;
224 DebugScopedSetMainThreadBlocked main_thread_blocked_; 225 DebugScopedSetMainThreadBlocked main_thread_blocked_;
225 226
226 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked); 227 DISALLOW_COPY_AND_ASSIGN(DebugScopedSetImplThreadAndMainThreadBlocked);
227 }; 228 };
228 229
229 } // namespace cc 230 } // namespace cc
230 231
231 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_ 232 #endif // CC_TREES_SINGLE_THREAD_PROXY_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698