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

Side by Side Diff: components/scheduler/renderer/renderer_scheduler_impl.h

Issue 1977863004: scheduler: Add main thread gesture as a detected use case (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix broken test 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
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 COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 5 #ifndef COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 6 #define COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
7 7
8 #include "base/atomicops.h" 8 #include "base/atomicops.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/synchronization/lock.h" 10 #include "base/synchronization/lock.h"
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
355 ~AnyThread(); 355 ~AnyThread();
356 356
357 base::TimeTicks last_idle_period_end_time; 357 base::TimeTicks last_idle_period_end_time;
358 base::TimeTicks rails_loading_priority_deadline; 358 base::TimeTicks rails_loading_priority_deadline;
359 base::TimeTicks fling_compositor_escalation_deadline; 359 base::TimeTicks fling_compositor_escalation_deadline;
360 UserModel user_model; 360 UserModel user_model;
361 bool awaiting_touch_start_response; 361 bool awaiting_touch_start_response;
362 bool in_idle_period; 362 bool in_idle_period;
363 bool begin_main_frame_on_critical_path; 363 bool begin_main_frame_on_critical_path;
364 bool last_gesture_was_compositor_driven; 364 bool last_gesture_was_compositor_driven;
365 bool default_gesture_prevented;
365 bool have_seen_touchstart; 366 bool have_seen_touchstart;
366 }; 367 };
367 368
368 struct CompositorThreadOnly { 369 struct CompositorThreadOnly {
369 CompositorThreadOnly(); 370 CompositorThreadOnly();
370 ~CompositorThreadOnly(); 371 ~CompositorThreadOnly();
371 372
372 blink::WebInputEvent::Type last_input_type; 373 blink::WebInputEvent::Type last_input_type;
373 std::unique_ptr<base::ThreadChecker> compositor_thread_checker; 374 std::unique_ptr<base::ThreadChecker> compositor_thread_checker;
374 375
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 416
416 PollableThreadSafeFlag policy_may_need_update_; 417 PollableThreadSafeFlag policy_may_need_update_;
417 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_; 418 base::WeakPtrFactory<RendererSchedulerImpl> weak_factory_;
418 419
419 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl); 420 DISALLOW_COPY_AND_ASSIGN(RendererSchedulerImpl);
420 }; 421 };
421 422
422 } // namespace scheduler 423 } // namespace scheduler
423 424
424 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_ 425 #endif // COMPONENTS_SCHEDULER_RENDERER_RENDERER_SCHEDULER_IMPL_H_
OLDNEW
« no previous file with comments | « components/scheduler/renderer/renderer_scheduler.cc ('k') | components/scheduler/renderer/renderer_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698