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

Unified Diff: content/renderer/gpu/frame_swap_message_queue.h

Issue 1126963006: Move VISUAL_STATE promise to activation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: amend comments 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/gpu/frame_swap_message_queue.h
diff --git a/content/renderer/gpu/frame_swap_message_queue.h b/content/renderer/gpu/frame_swap_message_queue.h
index 51eb229ed7871ed8367a2b39c19c741d868ee28b..b12b4176ac2e7acf2ddccb8b816fe732ae7ce81b 100644
--- a/content/renderer/gpu/frame_swap_message_queue.h
+++ b/content/renderer/gpu/frame_swap_message_queue.h
@@ -52,14 +52,19 @@ class CONTENT_EXPORT FrameSwapMessageQueue
// Returns true if there are no messages in the queue.
bool Empty() const;
- // Should be called when a successful swap occurs. The messages for that swap
- // can be obtained by calling DrainMessages.
+ // Should be called when a successful activation occurs. The messages for
+ // that activation can be obtained by calling DrainMessages.
+ //
+ // |source_frame_number| frame number for which the activate occurred.
+ void DidActivate(int source_frame_number);
+
+ // Should be called when a successful swap occurs. The messages for that
+ // swap can be obtained by calling DrainMessages.
//
// |source_frame_number| frame number for which the swap occurred.
void DidSwap(int source_frame_number);
- // Should be called when we know a swap will not occur. This also means we
- // won't be expecting a DrainMessages call.
+ // Should be called when we know a swap will not occur.
//
// |source_frame_number| frame number for which the swap will not occur.
// |reason| reason for the which the swap will not occur.
« no previous file with comments | « content/browser/android/in_process/synchronous_compositor_impl.cc ('k') | content/renderer/gpu/frame_swap_message_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698