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

Unified Diff: cc/output/output_surface.h

Issue 548153004: Unified BeginFrame scheduling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git cl format Created 6 years, 3 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 | « cc/output/begin_frame_args.h ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/output_surface.h
diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h
index 42498c8451e12594d0d8e377cacfefd9456b9b06..918b9493c26aea15ef76fd6e39a0f3c60c543f3c 100644
--- a/cc/output/output_surface.h
+++ b/cc/output/output_surface.h
@@ -30,8 +30,9 @@ namespace cc {
class CompositorFrame;
class CompositorFrameAck;
-struct ManagedMemoryPolicy;
class OutputSurfaceClient;
+struct BeginFrameArgs;
+struct ManagedMemoryPolicy;
// Represents the output surface for a compositor. The compositor owns
// and manages its destruction. Its lifetime is:
@@ -125,13 +126,19 @@ class CC_EXPORT OutputSurface {
// OutputSurfaceClient::BeginFrame until the callback is disabled.
virtual void SetNeedsBeginFrame(bool enable) {}
- bool HasClient() { return !!client_; }
+ bool HasClient() const { return !!client_; }
// Get the class capable of informing cc of hardware overlay capability.
OverlayCandidateValidator* overlay_candidate_validator() const {
return overlay_candidate_validator_.get();
}
+ void BeginFrame(const BeginFrameArgs& args) const;
+
+ base::WeakPtr<OutputSurface> GetWeakPtr() {
+ return weak_ptr_factory_.GetWeakPtr();
+ }
+
protected:
OutputSurfaceClient* client_;
« no previous file with comments | « cc/output/begin_frame_args.h ('k') | cc/output/output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698