OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/single_thread_proxy.h" | 5 #include "cc/single_thread_proxy.h" |
6 | 6 |
7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "cc/draw_quad.h" | 9 #include "cc/draw_quad.h" |
10 #include "cc/layer_tree_host.h" | 10 #include "cc/layer_tree_host.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 didSwapFrame(); | 71 didSwapFrame(); |
72 | 72 |
73 return true; | 73 return true; |
74 } | 74 } |
75 | 75 |
76 void SingleThreadProxy::startPageScaleAnimation(gfx::Vector2d targetOffset, bool
useAnchor, float scale, base::TimeDelta duration) | 76 void SingleThreadProxy::startPageScaleAnimation(gfx::Vector2d targetOffset, bool
useAnchor, float scale, base::TimeDelta duration) |
77 { | 77 { |
78 m_layerTreeHostImpl->startPageScaleAnimation(targetOffset, useAnchor, scale,
base::TimeTicks::Now(), duration); | 78 m_layerTreeHostImpl->startPageScaleAnimation(targetOffset, useAnchor, scale,
base::TimeTicks::Now(), duration); |
79 } | 79 } |
80 | 80 |
| 81 void SingleThreadProxy::programmaticScroll(gfx::Vector2d targetOffset) OVERRIDE |
| 82 { |
| 83 m_layerTreeHostImpl->programmaticScroll(targetOffset); |
| 84 } |
| 85 |
81 void SingleThreadProxy::finishAllRendering() | 86 void SingleThreadProxy::finishAllRendering() |
82 { | 87 { |
83 DCHECK(Proxy::isMainThread()); | 88 DCHECK(Proxy::isMainThread()); |
84 { | 89 { |
85 DebugScopedSetImplThread impl(this); | 90 DebugScopedSetImplThread impl(this); |
86 m_layerTreeHostImpl->finishAllRendering(); | 91 m_layerTreeHostImpl->finishAllRendering(); |
87 } | 92 } |
88 } | 93 } |
89 | 94 |
90 bool SingleThreadProxy::isStarted() const | 95 bool SingleThreadProxy::isStarted() const |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 } | 432 } |
428 | 433 |
429 skia::RefPtr<SkPicture> SingleThreadProxy::capturePicture() | 434 skia::RefPtr<SkPicture> SingleThreadProxy::capturePicture() |
430 { | 435 { |
431 // Requires impl-side painting, which is only supported in threaded composit
ing. | 436 // Requires impl-side painting, which is only supported in threaded composit
ing. |
432 NOTREACHED(); | 437 NOTREACHED(); |
433 return skia::RefPtr<SkPicture>(); | 438 return skia::RefPtr<SkPicture>(); |
434 } | 439 } |
435 | 440 |
436 } // namespace cc | 441 } // namespace cc |
OLD | NEW |