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

Unified Diff: trunk/src/cc/base/swap_promise.h

Issue 96073002: Revert 237848 "Use LatencyInfoSwapPromise to track LatencyInfo t..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « trunk/src/cc/base/latency_info_swap_promise.cc ('k') | trunk/src/cc/cc.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/cc/base/swap_promise.h
===================================================================
--- trunk/src/cc/base/swap_promise.h (revision 237855)
+++ trunk/src/cc/base/swap_promise.h (working copy)
@@ -5,8 +5,6 @@
#ifndef CC_BASE_SWAP_PROMISE_H_
#define CC_BASE_SWAP_PROMISE_H_
-#include "cc/output/compositor_frame_metadata.h"
-
namespace cc {
const unsigned int kMaxQueuedSwapPromiseNumber = 100;
@@ -29,8 +27,11 @@
// DidNotSwap() are called at a particular thread. It is better to let the
// subclass carry thread-safe member data and operate on that member data in
// DidSwap() and DidNotSwap().
-class CC_EXPORT SwapPromise {
+class SwapPromise {
public:
+ SwapPromise() {}
+ virtual ~SwapPromise() {}
+
enum DidNotSwapReason {
DID_NOT_SWAP_UNKNOWN,
SWAP_FAILS,
@@ -38,10 +39,7 @@
SWAP_PROMISE_LIST_OVERFLOW,
};
- SwapPromise() {}
- virtual ~SwapPromise() {}
-
- virtual void DidSwap(CompositorFrameMetadata* metadata) = 0;
+ virtual void DidSwap() = 0;
virtual void DidNotSwap(DidNotSwapReason reason) = 0;
};
« no previous file with comments | « trunk/src/cc/base/latency_info_swap_promise.cc ('k') | trunk/src/cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698