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

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

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: BrowserCompositorOutputSurface owns;scheduler decides Created 4 years, 9 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_PROXY_IMPL_H_ 5 #ifndef CC_TREES_PROXY_IMPL_H_
6 #define CC_TREES_PROXY_IMPL_H_ 6 #define CC_TREES_PROXY_IMPL_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/completion_event.h" 10 #include "cc/base/completion_event.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 LayerTreeHost* layer_tree_host; 71 LayerTreeHost* layer_tree_host;
72 }; 72 };
73 73
74 friend class ProxyImplForTest; 74 friend class ProxyImplForTest;
75 75
76 // LayerTreeHostImplClient implementation 76 // LayerTreeHostImplClient implementation
77 void UpdateRendererCapabilitiesOnImplThread() override; 77 void UpdateRendererCapabilitiesOnImplThread() override;
78 void DidLoseOutputSurfaceOnImplThread() override; 78 void DidLoseOutputSurfaceOnImplThread() override;
79 void CommitVSyncParameters(base::TimeTicks timebase, 79 void CommitVSyncParameters(base::TimeTicks timebase,
80 base::TimeDelta interval) override; 80 base::TimeDelta interval) override;
81 void SetBeginFrameSource(BeginFrameSource* source) override;
81 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override; 82 void SetEstimatedParentDrawTime(base::TimeDelta draw_time) override;
82 void DidSwapBuffersOnImplThread() override; 83 void DidSwapBuffersOnImplThread() override;
83 void DidSwapBuffersCompleteOnImplThread() override; 84 void DidSwapBuffersCompleteOnImplThread() override;
84 void OnCanDrawStateChanged(bool can_draw) override; 85 void OnCanDrawStateChanged(bool can_draw) override;
85 void NotifyReadyToActivate() override; 86 void NotifyReadyToActivate() override;
86 void NotifyReadyToDraw() override; 87 void NotifyReadyToDraw() override;
87 // Please call these 3 functions through 88 // Please call these 3 functions through
88 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and 89 // LayerTreeHostImpl's SetNeedsRedraw(), SetNeedsRedrawRect() and
89 // SetNeedsOneBeginImplFrame(). 90 // SetNeedsOneBeginImplFrame().
90 void SetNeedsRedrawOnImplThread() override; 91 void SetNeedsRedrawOnImplThread() override;
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // Use accessors instead of this variable directly. 169 // Use accessors instead of this variable directly.
169 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_; 170 BlockedMainCommitOnly main_thread_blocked_commit_vars_unsafe_;
170 BlockedMainCommitOnly& blocked_main_commit(); 171 BlockedMainCommitOnly& blocked_main_commit();
171 172
172 DISALLOW_COPY_AND_ASSIGN(ProxyImpl); 173 DISALLOW_COPY_AND_ASSIGN(ProxyImpl);
173 }; 174 };
174 175
175 } // namespace cc 176 } // namespace cc
176 177
177 #endif // CC_TREES_PROXY_IMPL_H_ 178 #endif // CC_TREES_PROXY_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698