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

Unified Diff: ui/compositor/compositor.h

Issue 638653003: Make ui::Compositor use ui::Scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 30b77dd2909b0b367f1b40e4dbf12bf8422390af..ded29924219e8de0bd6f9f50bce1359083eb40c0 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -25,8 +25,6 @@
#include "ui/gfx/geometry/vector2d.h"
#include "ui/gfx/native_widget_types.h"
-class SkBitmap;
-
namespace base {
class MessageLoopProxy;
class RunLoop;
@@ -175,9 +173,6 @@ class COMPOSITOR_EXPORT Compositor
// compositing layers on.
float device_scale_factor() const { return device_scale_factor_; }
- // Draws the scene created by the layer tree and any visual effects.
- void Draw();
-
// Where possible, draws are scissored to a damage region calculated from
// changes to layer properties. This bypasses that and indicates that
// the whole frame needs to be drawn.
@@ -267,14 +262,9 @@ class COMPOSITOR_EXPORT Compositor
void DidCompletePageScaleAnimation() override {}
// cc::LayerTreeHostSingleThreadClient implementation.
- void ScheduleComposite() override;
- void ScheduleAnimation() override;
void DidPostSwapBuffers() override;
void DidAbortSwapBuffers() override;
- int last_started_frame() { return last_started_frame_; }
- int last_ended_frame() { return last_ended_frame_; }
-
bool IsLocked() { return compositor_lock_ != NULL; }
const cc::LayerTreeDebugState& GetLayerTreeDebugState() const;
@@ -304,9 +294,6 @@ class COMPOSITOR_EXPORT Compositor
// Called to release any pending CompositorLock
void CancelCompositorLock();
- // Notifies the compositor that compositing is complete.
- void NotifyEnd();
-
gfx::Size size_;
ui::ContextFactory* context_factory_;
@@ -340,15 +327,6 @@ class COMPOSITOR_EXPORT Compositor
CompositorLock* compositor_lock_;
- // Prevent more than one draw from being scheduled.
- bool defer_draw_scheduling_;
-
- // Used to prevent Draw()s while a composite is in progress.
- bool waiting_on_compositing_end_;
- bool draw_on_compositing_end_;
- enum SwapState { SWAP_NONE, SWAP_POSTED, SWAP_COMPLETED };
- SwapState swap_state_;
-
LayerAnimatorCollection layer_animator_collection_;
base::WeakPtrFactory<Compositor> weak_ptr_factory_;
« no previous file with comments | « ui/aura/demo/demo_main.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698