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

Side by Side Diff: cc/single_thread_proxy.cc

Issue 12217105: cc: Check for completed raster tasks at interval. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 void SingleThreadProxy::setNeedsCommitOnImplThread() 284 void SingleThreadProxy::setNeedsCommitOnImplThread()
285 { 285 {
286 m_layerTreeHost->scheduleComposite(); 286 m_layerTreeHost->scheduleComposite();
287 } 287 }
288 288
289 void SingleThreadProxy::setNeedsManageTilesOnImplThread() 289 void SingleThreadProxy::setNeedsManageTilesOnImplThread()
290 { 290 {
291 m_layerTreeHost->scheduleComposite(); 291 m_layerTreeHost->scheduleComposite();
292 } 292 }
293 293
294 void SingleThreadProxy::setNeedsCheckForCompletedRasterTasksOnImplThread()
295 {
296 // implSidePainting only.
297 NOTREACHED();
298 }
299
294 void SingleThreadProxy::postAnimationEventsToMainThreadOnImplThread(scoped_ptr<A nimationEventsVector> events, base::Time wallClockTime) 300 void SingleThreadProxy::postAnimationEventsToMainThreadOnImplThread(scoped_ptr<A nimationEventsVector> events, base::Time wallClockTime)
295 { 301 {
296 DCHECK(Proxy::isImplThread()); 302 DCHECK(Proxy::isImplThread());
297 DebugScopedSetMainThread main(this); 303 DebugScopedSetMainThread main(this);
298 m_layerTreeHost->setAnimationEvents(events.Pass(), wallClockTime); 304 m_layerTreeHost->setAnimationEvents(events.Pass(), wallClockTime);
299 } 305 }
300 306
301 bool SingleThreadProxy::reduceContentsTextureMemoryOnImplThread(size_t limitByte s, int priorityCutoff) 307 bool SingleThreadProxy::reduceContentsTextureMemoryOnImplThread(size_t limitByte s, int priorityCutoff)
302 { 308 {
303 DCHECK(isImplThread()); 309 DCHECK(isImplThread());
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 } 435 }
430 436
431 skia::RefPtr<SkPicture> SingleThreadProxy::capturePicture() 437 skia::RefPtr<SkPicture> SingleThreadProxy::capturePicture()
432 { 438 {
433 // Requires impl-side painting, which is only supported in threaded composit ing. 439 // Requires impl-side painting, which is only supported in threaded composit ing.
434 NOTREACHED(); 440 NOTREACHED();
435 return skia::RefPtr<SkPicture>(); 441 return skia::RefPtr<SkPicture>();
436 } 442 }
437 443
438 } // namespace cc 444 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698