Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: content/renderer/gpu/queue_message_promise.h

Issue 1126963006: Move VISUAL_STATE promise to activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Current state (presubmit warnings, cc_unittests tests failing) Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 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 CONTENT_RENDERER_GPU_QUEUE_MESSAGE_PROMISE_H_
6 #define CONTENT_RENDERER_GPU_QUEUE_MESSAGE_PROMISE_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h"
11 #include "cc/output/activation_promise.h"
12 #include "content/renderer/gpu/queue_message_promise.h"
13
14 namespace IPC {
15 class Message;
16 class SyncMessageFilter;
17 }
18
19 namespace content {
20
21 class FrameUpdateMessageQueue;
22
23 class QueueMessagePromise {
24 public:
25 QueueMessagePromise(scoped_refptr<IPC::SyncMessageFilter> message_sender,
26 scoped_refptr<FrameUpdateMessageQueue> message_queue,
27 int source_frame_number);
28
29 virtual ~QueueMessagePromise();
30
31 protected:
32 void PromiseCompleted();
33 void DeliverMessages(ScopedVector<IPC::Message>* messages);
34
35 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
36 scoped_refptr<content::FrameUpdateMessageQueue> message_queue_;
37 int source_frame_number_;
38 #if DCHECK_IS_ON()
39 bool completed_;
40 #endif
41 };
42
43 } // namespace content
44
45 #endif // CONTENT_RENDERER_GPU_QUEUE_MESSAGE_PROMISE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698