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

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

Issue 2967553002: Revert "Fix Omnibox.CharTypedToRepaintLatency regression with D3DVsync experiment" (Closed)
Patch Set: Created 3 years, 5 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 void AddObserver(BeginFrameObserver* obs) override; 250 void AddObserver(BeginFrameObserver* obs) override;
251 void RemoveObserver(BeginFrameObserver* obs) override; 251 void RemoveObserver(BeginFrameObserver* obs) override;
252 void DidFinishFrame(BeginFrameObserver* obs) override {} 252 void DidFinishFrame(BeginFrameObserver* obs) override {}
253 bool IsThrottled() const override; 253 bool IsThrottled() const override;
254 void AsValueInto(base::trace_event::TracedValue* state) const override; 254 void AsValueInto(base::trace_event::TracedValue* state) const override;
255 255
256 void OnSetBeginFrameSourcePaused(bool paused); 256 void OnSetBeginFrameSourcePaused(bool paused);
257 void OnBeginFrame(const BeginFrameArgs& args); 257 void OnBeginFrame(const BeginFrameArgs& args);
258 258
259 protected: 259 protected:
260 // Called on AddObserver and gets missed BeginFrameArgs for the given
261 // observer.
262 virtual BeginFrameArgs GetMissedBeginFrameArgs(BeginFrameObserver* obs);
263
264 BeginFrameArgs last_begin_frame_args_; 260 BeginFrameArgs last_begin_frame_args_;
265 std::unordered_set<BeginFrameObserver*> observers_; 261 std::unordered_set<BeginFrameObserver*> observers_;
266 ExternalBeginFrameSourceClient* client_; 262 ExternalBeginFrameSourceClient* client_;
267 bool paused_ = false; 263 bool paused_ = false;
268 264
269 private: 265 private:
270 DISALLOW_COPY_AND_ASSIGN(ExternalBeginFrameSource); 266 DISALLOW_COPY_AND_ASSIGN(ExternalBeginFrameSource);
271 }; 267 };
272 268
273 } // namespace cc 269 } // namespace cc
274 270
275 #endif // CC_SCHEDULER_BEGIN_FRAME_SOURCE_H_ 271 #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