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

Side by Side Diff: ui/compositor/compositor.h

Issue 2753843003: Create a new action triggered when a BeginMainFrame is not expected before vsync (Closed)
Patch Set: Respond to Sami's comments Created 3 years, 8 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 void OnSwapBuffersComplete(); 346 void OnSwapBuffersComplete();
347 347
348 // Signals swap has aborted (e.g. lost context). 348 // Signals swap has aborted (e.g. lost context).
349 void OnSwapBuffersAborted(); 349 void OnSwapBuffersAborted();
350 350
351 // LayerTreeHostClient implementation. 351 // LayerTreeHostClient implementation.
352 void WillBeginMainFrame() override {} 352 void WillBeginMainFrame() override {}
353 void DidBeginMainFrame() override {} 353 void DidBeginMainFrame() override {}
354 void BeginMainFrame(const cc::BeginFrameArgs& args) override; 354 void BeginMainFrame(const cc::BeginFrameArgs& args) override;
355 void BeginMainFrameNotExpectedSoon() override; 355 void BeginMainFrameNotExpectedSoon() override;
356 void BeginMainFrameNotExpectedUntil(base::TimeTicks frame_time) override;
356 void UpdateLayerTreeHost() override; 357 void UpdateLayerTreeHost() override;
357 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, 358 void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta,
358 const gfx::Vector2dF& outer_delta, 359 const gfx::Vector2dF& outer_delta,
359 const gfx::Vector2dF& elastic_overscroll_delta, 360 const gfx::Vector2dF& elastic_overscroll_delta,
360 float page_scale, 361 float page_scale,
361 float top_controls_delta) override {} 362 float top_controls_delta) override {}
362 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel, 363 void RecordWheelAndTouchScrollingCount(bool has_scrolled_by_wheel,
363 bool has_scrolled_by_touch) override {} 364 bool has_scrolled_by_touch) override {}
364 void RequestNewCompositorFrameSink() override; 365 void RequestNewCompositorFrameSink() override;
365 void DidInitializeCompositorFrameSink() override {} 366 void DidInitializeCompositorFrameSink() override {}
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 gfx::ColorSpace blending_color_space_; 447 gfx::ColorSpace blending_color_space_;
447 448
448 base::WeakPtrFactory<Compositor> weak_ptr_factory_; 449 base::WeakPtrFactory<Compositor> weak_ptr_factory_;
449 450
450 DISALLOW_COPY_AND_ASSIGN(Compositor); 451 DISALLOW_COPY_AND_ASSIGN(Compositor);
451 }; 452 };
452 453
453 } // namespace ui 454 } // namespace ui
454 455
455 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 456 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698