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

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: Post task to impl thread when worker pool becomes idle. 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 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 { 274 {
275 m_layerTreeHost->scheduleComposite(); 275 m_layerTreeHost->scheduleComposite();
276 } 276 }
277 277
278 void SingleThreadProxy::didUploadVisibleHighResolutionTileOnImplThread() 278 void SingleThreadProxy::didUploadVisibleHighResolutionTileOnImplThread()
279 { 279 {
280 // implSidePainting only. 280 // implSidePainting only.
281 NOTREACHED(); 281 NOTREACHED();
282 } 282 }
283 283
284 void SingleThreadProxy::didDetectIdleRasterOnImplThread()
285 {
286 // implSidePainting only.
287 NOTREACHED();
288 }
289
284 void SingleThreadProxy::setNeedsCommitOnImplThread() 290 void SingleThreadProxy::setNeedsCommitOnImplThread()
285 { 291 {
286 m_layerTreeHost->scheduleComposite(); 292 m_layerTreeHost->scheduleComposite();
287 } 293 }
288 294
289 void SingleThreadProxy::setNeedsManageTilesOnImplThread() 295 void SingleThreadProxy::setNeedsManageTilesOnImplThread()
290 { 296 {
291 m_layerTreeHost->scheduleComposite(); 297 m_layerTreeHost->scheduleComposite();
292 } 298 }
293 299
300 void SingleThreadProxy::setNeedsCheckForCompletedRasterTasksOnImplThread()
301 {
302 // implSidePainting only.
303 NOTREACHED();
304 }
305
294 void SingleThreadProxy::postAnimationEventsToMainThreadOnImplThread(scoped_ptr<A nimationEventsVector> events, base::Time wallClockTime) 306 void SingleThreadProxy::postAnimationEventsToMainThreadOnImplThread(scoped_ptr<A nimationEventsVector> events, base::Time wallClockTime)
295 { 307 {
296 DCHECK(Proxy::isImplThread()); 308 DCHECK(Proxy::isImplThread());
297 DebugScopedSetMainThread main(this); 309 DebugScopedSetMainThread main(this);
298 m_layerTreeHost->setAnimationEvents(events.Pass(), wallClockTime); 310 m_layerTreeHost->setAnimationEvents(events.Pass(), wallClockTime);
299 } 311 }
300 312
301 bool SingleThreadProxy::reduceContentsTextureMemoryOnImplThread(size_t limitByte s, int priorityCutoff) 313 bool SingleThreadProxy::reduceContentsTextureMemoryOnImplThread(size_t limitByte s, int priorityCutoff)
302 { 314 {
303 DCHECK(isImplThread()); 315 DCHECK(isImplThread());
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 } 455 }
444 456
445 skia::RefPtr<SkPicture> SingleThreadProxy::capturePicture() 457 skia::RefPtr<SkPicture> SingleThreadProxy::capturePicture()
446 { 458 {
447 // Requires impl-side painting, which is only supported in threaded composit ing. 459 // Requires impl-side painting, which is only supported in threaded composit ing.
448 NOTREACHED(); 460 NOTREACHED();
449 return skia::RefPtr<SkPicture>(); 461 return skia::RefPtr<SkPicture>();
450 } 462 }
451 463
452 } // namespace cc 464 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698