Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_BLIMP_COMPOSITOR_PROTO_STATE_SINK_CLIENT_H_ | |
| 6 #define CC_BLIMP_COMPOSITOR_PROTO_STATE_SINK_CLIENT_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "cc/base/cc_export.h" | |
| 10 | |
| 11 namespace base { | |
| 12 class SingleThreadTaskRunner; | |
| 13 } // namespace base | |
| 14 | |
| 15 namespace cc { | |
| 16 class CompositorProtoState; | |
| 17 | |
| 18 class CC_EXPORT CompositorProtoStateSinkClient { | |
| 19 public: | |
| 20 virtual ~CompositorProtoStateSinkClient() {} | |
| 21 | |
| 22 // Called in response to a ScheduleMainFrame request made on the | |
| 23 // CompositorProtoStateSink. | |
| 24 // Note: The method should always be invoked asynchronously after the request | |
| 25 // is made. | |
| 26 virtual void BeginMainFrame() = 0; | |
| 27 | |
| 28 // Returns the task runner for the compositor's main thread. | |
| 29 virtual base::SingleThreadTaskRunner* GetMainTaskRunner() = 0; | |
|
danakj
2016/09/26 21:36:52
Why do you need this?
Khushal
2016/09/27 01:07:48
My understanding was that the task runner that is
danakj
2016/09/27 20:32:43
If you passed in the task runner you already have
Khushal
2016/09/27 23:46:55
Oh you mean like pass it to the CompositorProtoSta
Khushal
2016/09/28 19:47:16
Done.
| |
| 30 }; | |
| 31 | |
| 32 } // namespace cc | |
| 33 | |
| 34 #endif // CC_BLIMP_COMPOSITOR_PROTO_STATE_SINK_CLIENT_H_ | |
| OLD | NEW |