Chromium Code Reviews| Index: cc/trees/thread_proxy.cc |
| diff --git a/cc/trees/thread_proxy.cc b/cc/trees/thread_proxy.cc |
| index e16adb9a5508d09e39f889b175618d4c80ec3b51..af1a17aab5e6f8dff22f49fc73df5c25270c9501 100644 |
| --- a/cc/trees/thread_proxy.cc |
| +++ b/cc/trees/thread_proxy.cc |
| @@ -27,6 +27,8 @@ |
| #include "cc/trees/layer_tree_impl.h" |
| #include "ui/gfx/frame_time.h" |
| +namespace cc { |
| + |
| namespace { |
| // Measured in seconds. |
| @@ -34,21 +36,19 @@ const double kSmoothnessTakesPriorityExpirationDelay = 0.25; |
| class SwapPromiseChecker { |
| public: |
| - explicit SwapPromiseChecker(cc::LayerTreeHost* layer_tree_host) |
| + explicit SwapPromiseChecker(LayerTreeHost* layer_tree_host) |
| : layer_tree_host_(layer_tree_host) {} |
| ~SwapPromiseChecker() { |
| - layer_tree_host_->BreakSwapPromises(cc::SwapPromise::COMMIT_FAILS); |
| + layer_tree_host_->BreakSwapPromises(SwapPromise::COMMIT_FAILS); |
| } |
| private: |
| - cc::LayerTreeHost* layer_tree_host_; |
| + LayerTreeHost* layer_tree_host_; |
| }; |
| } // namespace |
| -namespace cc { |
| - |
| struct ThreadProxy::CommitPendingRequest { |
| CompletionEvent completion; |
| bool commit_pending; |
| @@ -749,6 +749,7 @@ void ThreadProxy::BeginMainFrame( |
| TRACE_EVENT_INSTANT0( |
| "cc", "EarlyOut_OutputSurfaceLost", TRACE_EVENT_SCOPE_THREAD); |
| bool did_handle = false; |
| + DCHECK(false); |
|
piman
2014/06/26 20:40:12
?
mkosiba (inactive)
2014/06/27 14:18:59
high-tech method of figuring out which tests hit t
|
| Proxy::ImplThreadTaskRunner()->PostTask( |
| FROM_HERE, |
| base::Bind(&ThreadProxy::BeginMainFrameAbortedOnImplThread, |
| @@ -839,6 +840,7 @@ void ThreadProxy::BeginMainFrame( |
| // went through, and input should no longer be throttled, etc. |
| layer_tree_host()->CommitComplete(); |
| layer_tree_host()->DidBeginMainFrame(); |
| + layer_tree_host()->BreakSwapPromises(SwapPromise::COMMIT_NO_UPDATE); |
| return; |
| } |