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

Side by Side Diff: cc/scheduler/begin_frame_source.h

Issue 2897263003: Fix Omnibox.CharTypedToRepaintLatency regression with D3DVsync experiment (Closed)
Patch Set: Addressed feedback Created 3 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
« no previous file with comments | « no previous file | cc/scheduler/begin_frame_source.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SCHEDULER_BEGIN_FRAME_SOURCE_H_ 5 #ifndef CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_
6 #define CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ 6 #define CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 void RemoveObserver(BeginFrameObserver* obs) override; 268 void RemoveObserver(BeginFrameObserver* obs) override;
269 void DidFinishFrame(BeginFrameObserver* obs, 269 void DidFinishFrame(BeginFrameObserver* obs,
270 const BeginFrameAck& ack) override; 270 const BeginFrameAck& ack) override;
271 bool IsThrottled() const override; 271 bool IsThrottled() const override;
272 void AsValueInto(base::trace_event::TracedValue* state) const override; 272 void AsValueInto(base::trace_event::TracedValue* state) const override;
273 273
274 void OnSetBeginFrameSourcePaused(bool paused); 274 void OnSetBeginFrameSourcePaused(bool paused);
275 void OnBeginFrame(const BeginFrameArgs& args); 275 void OnBeginFrame(const BeginFrameArgs& args);
276 276
277 protected: 277 protected:
278 // Called on AddObserver and gets missed BeginFrameArgs for the given
279 // observer.
280 virtual BeginFrameArgs GetMissedBeginFrameArgs(BeginFrameObserver* obs);
281
278 BeginFrameArgs last_begin_frame_args_; 282 BeginFrameArgs last_begin_frame_args_;
279 std::unordered_set<BeginFrameObserver*> observers_; 283 std::unordered_set<BeginFrameObserver*> observers_;
280 ExternalBeginFrameSourceClient* client_; 284 ExternalBeginFrameSourceClient* client_;
281 bool paused_ = false; 285 bool paused_ = false;
282 286
283 private: 287 private:
284 DISALLOW_COPY_AND_ASSIGN(ExternalBeginFrameSource); 288 DISALLOW_COPY_AND_ASSIGN(ExternalBeginFrameSource);
285 }; 289 };
286 290
287 } // namespace cc 291 } // namespace cc
288 292
289 #endif // CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ 293 #endif // CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/begin_frame_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698