Chromium Code Reviews| Index: cc/output/output_surface.h |
| diff --git a/cc/output/output_surface.h b/cc/output/output_surface.h |
| index f3a874ac458b064486cd6335466728049738484f..cf94b9d36f17b88c656167045a94ce1cb6425d3f 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: |
| @@ -129,13 +130,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; |
|
brianderson
2014/09/04 18:45:45
Should this be OnBeginFrame and protected? Can you
|
| + |
| + base::WeakPtr<OutputSurface> GetWeakPtr() { |
| + return weak_ptr_factory_.GetWeakPtr(); |
| + } |
| + |
| protected: |
| OutputSurfaceClient* client_; |