| 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_QUEUE_MESSAGE_SWAP_PROMISE_H_ | 5 #ifndef CONTENT_RENDERER_QUEUE_MESSAGE_SWAP_PROMISE_H_ |
| 6 #define CONTENT_RENDERER_QUEUE_MESSAGE_SWAP_PROMISE_H_ | 6 #define CONTENT_RENDERER_QUEUE_MESSAGE_SWAP_PROMISE_H_ |
| 7 | 7 |
| 8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/swap_promise.h" | 10 #include "cc/base/swap_promise.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 QueueMessageSwapPromise(scoped_refptr<IPC::SyncMessageFilter> message_sender, | 22 QueueMessageSwapPromise(scoped_refptr<IPC::SyncMessageFilter> message_sender, |
| 23 scoped_refptr<FrameSwapMessageQueue> message_queue, | 23 scoped_refptr<FrameSwapMessageQueue> message_queue, |
| 24 int source_frame_number); | 24 int source_frame_number); |
| 25 | 25 |
| 26 virtual ~QueueMessageSwapPromise(); | 26 virtual ~QueueMessageSwapPromise(); |
| 27 | 27 |
| 28 virtual void DidSwap(cc::CompositorFrameMetadata* metadata) OVERRIDE; | 28 virtual void DidSwap(cc::CompositorFrameMetadata* metadata) OVERRIDE; |
| 29 | 29 |
| 30 virtual void DidNotSwap(DidNotSwapReason reason) OVERRIDE; | 30 virtual void DidNotSwap(DidNotSwapReason reason) OVERRIDE; |
| 31 | 31 |
| 32 virtual int64 TraceId() const OVERRIDE; |
| 33 |
| 32 private: | 34 private: |
| 33 void PromiseCompleted(); | 35 void PromiseCompleted(); |
| 34 | 36 |
| 35 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 37 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
| 36 scoped_refptr<content::FrameSwapMessageQueue> message_queue_; | 38 scoped_refptr<content::FrameSwapMessageQueue> message_queue_; |
| 37 int source_frame_number_; | 39 int source_frame_number_; |
| 38 #if DCHECK_IS_ON | 40 #if DCHECK_IS_ON |
| 39 bool completed_; | 41 bool completed_; |
| 40 #endif | 42 #endif |
| 41 }; | 43 }; |
| 42 | 44 |
| 43 } // namespace content | 45 } // namespace content |
| 44 | 46 |
| 45 #endif // CONTENT_RENDERER_QUEUE_MESSAGE_SWAP_PROMISE_H_ | 47 #endif // CONTENT_RENDERER_QUEUE_MESSAGE_SWAP_PROMISE_H_ |
| OLD | NEW |