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

Side by Side Diff: cc/single_thread_proxy.cc

Issue 11967015: Hide location bar on WebKit programmatic scroll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't plumb through WebLayerTreeView Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/single_thread_proxy.h ('k') | cc/thread_proxy.h » ('j') | cc/top_controls_manager.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698