| 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;
|
| };
|
|
|
|
|