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

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

Issue 1139613003: cc: Avoid deadlock with the UI thread and NPAPI in more cases (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address Sunny's comments Created 5 years, 7 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/scheduler/scheduler_settings.cc ('k') | cc/scheduler/scheduler_state_machine.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_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 5 #ifndef CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 6 #define CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 bool BeginFrameRequiredForAction() const; 261 bool BeginFrameRequiredForAction() const;
262 bool BeginFrameRequiredForChildren() const; 262 bool BeginFrameRequiredForChildren() const;
263 bool BeginFrameNeededForVideo() const; 263 bool BeginFrameNeededForVideo() const;
264 bool ProactiveBeginFrameWanted() const; 264 bool ProactiveBeginFrameWanted() const;
265 265
266 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; 266 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const;
267 267
268 // True if we need to force activations to make forward progress. 268 // True if we need to force activations to make forward progress.
269 bool PendingActivationsShouldBeForced() const; 269 bool PendingActivationsShouldBeForced() const;
270 270
271 // TODO(brianderson): Remove this once NPAPI support is removed.
272 bool SendingBeginMainFrameMightCauseDeadlock() const;
273
271 bool ShouldAnimate() const; 274 bool ShouldAnimate() const;
272 bool ShouldBeginOutputSurfaceCreation() const; 275 bool ShouldBeginOutputSurfaceCreation() const;
273 bool ShouldDraw() const; 276 bool ShouldDraw() const;
274 bool ShouldActivatePendingTree() const; 277 bool ShouldActivatePendingTree() const;
275 bool ShouldSendBeginMainFrame() const; 278 bool ShouldSendBeginMainFrame() const;
276 bool ShouldCommit() const; 279 bool ShouldCommit() const;
277 bool ShouldPrepareTiles() const; 280 bool ShouldPrepareTiles() const;
278 bool ShouldInvalidateOutputSurface() const; 281 bool ShouldInvalidateOutputSurface() const;
279 282
280 void UpdateStateOnAnimate(); 283 void UpdateStateOnAnimate();
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 bool did_request_swap_in_last_frame_; 343 bool did_request_swap_in_last_frame_;
341 bool did_perform_swap_in_last_draw_; 344 bool did_perform_swap_in_last_draw_;
342 345
343 private: 346 private:
344 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 347 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
345 }; 348 };
346 349
347 } // namespace cc 350 } // namespace cc
348 351
349 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 352 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_settings.cc ('k') | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698