| 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 "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "cc/base/swap_promise.h" | 10 #include "cc/output/swap_promise.h" |
| 11 | 11 |
| 12 namespace IPC { | 12 namespace IPC { |
| 13 class SyncMessageFilter; | 13 class SyncMessageFilter; |
| 14 } | 14 } |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 class FrameSwapMessageQueue; | 18 class FrameSwapMessageQueue; |
| 19 | 19 |
| 20 class QueueMessageSwapPromise : public cc::SwapPromise { | 20 class QueueMessageSwapPromise : public cc::SwapPromise { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 38 scoped_refptr<content::FrameSwapMessageQueue> message_queue_; | 38 scoped_refptr<content::FrameSwapMessageQueue> message_queue_; |
| 39 int source_frame_number_; | 39 int source_frame_number_; |
| 40 #if DCHECK_IS_ON() | 40 #if DCHECK_IS_ON() |
| 41 bool completed_; | 41 bool completed_; |
| 42 #endif | 42 #endif |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace content | 45 } // namespace content |
| 46 | 46 |
| 47 #endif // CONTENT_RENDERER_GPU_QUEUE_MESSAGE_SWAP_PROMISE_H_ | 47 #endif // CONTENT_RENDERER_GPU_QUEUE_MESSAGE_SWAP_PROMISE_H_ |
| OLD | NEW |