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

Side by Side Diff: cc/surfaces/display_scheduler.h

Issue 2183333003: cc: Post the missed BeginFrame to a new stack (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: post-swapcomplete: oh-and-remove Created 4 years, 4 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/surfaces/display_scheduler.cc » ('j') | cc/surfaces/display_scheduler.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SURFACES_DISPLAY_SCHEDULER_H_ 5 #ifndef CC_SURFACES_DISPLAY_SCHEDULER_H_
6 #define CC_SURFACES_DISPLAY_SCHEDULER_H_ 6 #define CC_SURFACES_DISPLAY_SCHEDULER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 DisplaySchedulerClient* client_; 62 DisplaySchedulerClient* client_;
63 BeginFrameSource* begin_frame_source_; 63 BeginFrameSource* begin_frame_source_;
64 base::SingleThreadTaskRunner* task_runner_; 64 base::SingleThreadTaskRunner* task_runner_;
65 65
66 BeginFrameArgs current_begin_frame_args_; 66 BeginFrameArgs current_begin_frame_args_;
67 base::Closure begin_frame_deadline_closure_; 67 base::Closure begin_frame_deadline_closure_;
68 base::CancelableClosure begin_frame_deadline_task_; 68 base::CancelableClosure begin_frame_deadline_task_;
69 base::TimeTicks begin_frame_deadline_task_time_; 69 base::TimeTicks begin_frame_deadline_task_time_;
70 70
71 base::CancelableClosure missed_begin_frame_task_;
72 bool inside_external_action_ = false;
sunnyps 2016/07/27 05:21:02 nit: can you follow existing style here i.e. initi
danakj 2016/07/27 22:34:55 Done.
73
71 bool output_surface_lost_; 74 bool output_surface_lost_;
72 bool root_surface_resources_locked_; 75 bool root_surface_resources_locked_;
73 76
74 bool inside_begin_frame_deadline_interval_; 77 bool inside_begin_frame_deadline_interval_;
75 bool needs_draw_; 78 bool needs_draw_;
76 bool expecting_root_surface_damage_because_of_resize_; 79 bool expecting_root_surface_damage_because_of_resize_;
77 bool all_active_child_surfaces_ready_to_draw_; 80 bool all_active_child_surfaces_ready_to_draw_;
78 81
79 int pending_swaps_; 82 int pending_swaps_;
80 int max_pending_swaps_; 83 int max_pending_swaps_;
(...skipping 10 matching lines...) Expand all
91 94
92 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_; 95 base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_;
93 96
94 private: 97 private:
95 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler); 98 DISALLOW_COPY_AND_ASSIGN(DisplayScheduler);
96 }; 99 };
97 100
98 } // namespace cc 101 } // namespace cc
99 102
100 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_ 103 #endif // CC_SURFACES_DISPLAY_SCHEDULER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/surfaces/display_scheduler.cc » ('j') | cc/surfaces/display_scheduler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698