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

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

Issue 1976823002: cc: Remove throttling of main frames for preventing NPAPI deadlock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « no previous file | 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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 bool BeginFrameRequiredForAction() const; 275 bool BeginFrameRequiredForAction() const;
276 bool BeginFrameNeededForVideo() const; 276 bool BeginFrameNeededForVideo() const;
277 bool ProactiveBeginFrameWanted() const; 277 bool ProactiveBeginFrameWanted() const;
278 278
279 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const; 279 bool ShouldTriggerBeginImplFrameDeadlineImmediately() const;
280 280
281 // True if we need to force activations to make forward progress. 281 // True if we need to force activations to make forward progress.
282 // TODO(sunnyps): Rename this to ShouldAbortCurrentFrame or similar. 282 // TODO(sunnyps): Rename this to ShouldAbortCurrentFrame or similar.
283 bool PendingActivationsShouldBeForced() const; 283 bool PendingActivationsShouldBeForced() const;
284 284
285 // TODO(brianderson): Remove this once NPAPI support is removed.
286 bool SendingBeginMainFrameMightCauseDeadlock() const;
287
288 bool ShouldBeginOutputSurfaceCreation() const; 285 bool ShouldBeginOutputSurfaceCreation() const;
289 bool ShouldDraw() const; 286 bool ShouldDraw() const;
290 bool ShouldActivatePendingTree() const; 287 bool ShouldActivatePendingTree() const;
291 bool ShouldSendBeginMainFrame() const; 288 bool ShouldSendBeginMainFrame() const;
292 bool ShouldCommit() const; 289 bool ShouldCommit() const;
293 bool ShouldPrepareTiles() const; 290 bool ShouldPrepareTiles() const;
294 bool ShouldInvalidateOutputSurface() const; 291 bool ShouldInvalidateOutputSurface() const;
295 292
296 void WillDrawInternal(); 293 void WillDrawInternal();
297 void DidDrawInternal(DrawResult draw_result); 294 void DidDrawInternal(DrawResult draw_result);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 bool did_draw_in_last_frame_; 347 bool did_draw_in_last_frame_;
351 bool did_swap_in_last_frame_; 348 bool did_swap_in_last_frame_;
352 349
353 private: 350 private:
354 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine); 351 DISALLOW_COPY_AND_ASSIGN(SchedulerStateMachine);
355 }; 352 };
356 353
357 } // namespace cc 354 } // namespace cc
358 355
359 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_ 356 #endif // CC_SCHEDULER_SCHEDULER_STATE_MACHINE_H_
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698