Chromium Code Reviews| Index: cc/scheduler/begin_frame_source.h |
| diff --git a/cc/scheduler/begin_frame_source.h b/cc/scheduler/begin_frame_source.h |
| index 3d849a40d638708ad37acca859aaeaa98e9e911e..e96a3e7fa558745e40fff78921f805108e06183c 100644 |
| --- a/cc/scheduler/begin_frame_source.h |
| +++ b/cc/scheduler/begin_frame_source.h |
| @@ -117,6 +117,9 @@ class CC_EXPORT BeginFrameSource { |
| virtual void AddObserver(BeginFrameObserver* obs) = 0; |
| virtual void RemoveObserver(BeginFrameObserver* obs) = 0; |
| + // Tells the Source that client is ready to handle BeginFrames messages. |
| + virtual void SetClientReady() = 0; |
|
brianderson
2014/10/23 02:12:44
Anyway we can avoid having this method as part of
simonhong
2014/10/24 14:30:18
At first, I created ExternalBeginFrameSource deriv
brianderson
2014/10/24 20:46:58
Ok, what you have now is good then. Any other solu
simonhong
2014/10/29 14:47:13
Yep!
|
| + |
| // Tracing support - Recommend (but not required) to call this implementation |
| // in any override. |
| virtual void AsValueInto(base::debug::TracedValue* dict) const = 0; |
| @@ -139,6 +142,7 @@ class CC_EXPORT BeginFrameSourceMixIn : public BeginFrameSource { |
| void DidFinishFrame(size_t remaining_frames) override {} |
| void AddObserver(BeginFrameObserver* obs) override; |
| void RemoveObserver(BeginFrameObserver* obs) override; |
| + void SetClientReady() override {} |
|
brianderson
2014/10/23 02:12:44
Delete this line so we do not override SetClientRe
brianderson
2014/10/24 20:46:58
Ignore my comment here. I didn't know that overrid
simonhong
2014/10/29 14:47:12
Some of them are still used by its subclass.
AddOb
brianderson
2014/11/01 01:08:32
Hmm, NeedsBeginFrames and SetNeedsBeginFrames shou
|
| // Tracing support - Recommend (but not required) to call this implementation |
| // in any override. |