OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_GPU_QUEUE_MESSAGE_SWAP_PROMISE_H_ | 5 #ifndef CONTENT_RENDERER_GPU_QUEUE_MESSAGE_SWAP_PROMISE_H_ |
6 #define CONTENT_RENDERER_GPU_QUEUE_MESSAGE_SWAP_PROMISE_H_ | 6 #define CONTENT_RENDERER_GPU_QUEUE_MESSAGE_SWAP_PROMISE_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "cc/output/swap_promise.h" | 9 #include "cc/output/swap_promise.h" |
10 | 10 |
(...skipping 11 matching lines...) Expand all Loading... |
22 scoped_refptr<FrameSwapMessageQueue> message_queue, | 22 scoped_refptr<FrameSwapMessageQueue> message_queue, |
23 int source_frame_number); | 23 int source_frame_number); |
24 | 24 |
25 ~QueueMessageSwapPromise() override; | 25 ~QueueMessageSwapPromise() override; |
26 | 26 |
27 void DidActivate() override; | 27 void DidActivate() override; |
28 void DidSwap(cc::CompositorFrameMetadata* metadata) override; | 28 void DidSwap(cc::CompositorFrameMetadata* metadata) override; |
29 void DidNotSwap(DidNotSwapReason reason) override; | 29 void DidNotSwap(DidNotSwapReason reason) override; |
30 | 30 |
31 int64 TraceId() const override; | 31 int64 TraceId() const override; |
| 32 void OnCommit() override; |
32 | 33 |
33 private: | 34 private: |
34 void PromiseCompleted(); | 35 void PromiseCompleted(); |
35 | 36 |
36 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 37 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
37 scoped_refptr<content::FrameSwapMessageQueue> message_queue_; | 38 scoped_refptr<content::FrameSwapMessageQueue> message_queue_; |
38 int source_frame_number_; | 39 int source_frame_number_; |
39 #if DCHECK_IS_ON() | 40 #if DCHECK_IS_ON() |
40 bool completed_; | 41 bool completed_; |
41 #endif | 42 #endif |
42 }; | 43 }; |
43 | 44 |
44 } // namespace content | 45 } // namespace content |
45 | 46 |
46 #endif // CONTENT_RENDERER_GPU_QUEUE_MESSAGE_SWAP_PROMISE_H_ | 47 #endif // CONTENT_RENDERER_GPU_QUEUE_MESSAGE_SWAP_PROMISE_H_ |
OLD | NEW |