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

Side by Side Diff: cc/trees/single_thread_proxy.cc

Issue 292493006: cc: BlockingTaskRunner without MessageLoopProxy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no message loop test harness Created 6 years, 7 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/trees/single_thread_proxy.h" 5 #include "cc/trees/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/debug/benchmark_instrumentation.h" 9 #include "cc/debug/benchmark_instrumentation.h"
10 #include "cc/output/context_provider.h" 10 #include "cc/output/context_provider.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 // Thread-only/Impl-side-painting-only feature. 252 // Thread-only/Impl-side-painting-only feature.
253 NOTREACHED(); 253 NOTREACHED();
254 } 254 }
255 255
256 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread( 256 void SingleThreadProxy::SetNeedsRedrawRectOnImplThread(
257 const gfx::Rect& damage_rect) { 257 const gfx::Rect& damage_rect) {
258 // TODO(brianderson): Once we move render_widget scheduling into this class, 258 // TODO(brianderson): Once we move render_widget scheduling into this class,
259 // we can treat redraw requests more efficiently than CommitAndRedraw 259 // we can treat redraw requests more efficiently than CommitAndRedraw
260 // requests. 260 // requests.
261 layer_tree_host_impl_->SetViewportDamage(damage_rect); 261 layer_tree_host_impl_->SetViewportDamage(damage_rect);
262 DebugScopedSetMainThread main(this);
262 SetNeedsCommit(); 263 SetNeedsCommit();
263 } 264 }
264 265
265 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() { 266 void SingleThreadProxy::DidInitializeVisibleTileOnImplThread() {
266 // Impl-side painting only. 267 // Impl-side painting only.
267 NOTREACHED(); 268 NOTREACHED();
268 } 269 }
269 270
270 void SingleThreadProxy::SetNeedsCommitOnImplThread() { 271 void SingleThreadProxy::SetNeedsCommitOnImplThread() {
271 client_->ScheduleComposite(); 272 client_->ScheduleComposite();
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 void SingleThreadProxy::DidSwapFrame() { 467 void SingleThreadProxy::DidSwapFrame() {
467 if (next_frame_is_newly_committed_frame_) { 468 if (next_frame_is_newly_committed_frame_) {
468 next_frame_is_newly_committed_frame_ = false; 469 next_frame_is_newly_committed_frame_ = false;
469 layer_tree_host_->DidCommitAndDrawFrame(); 470 layer_tree_host_->DidCommitAndDrawFrame();
470 } 471 }
471 } 472 }
472 473
473 bool SingleThreadProxy::CommitPendingForTesting() { return false; } 474 bool SingleThreadProxy::CommitPendingForTesting() { return false; }
474 475
475 } // namespace cc 476 } // namespace cc
OLDNEW
« cc/trees/layer_tree_host_unittest_no_message_loop.cc ('K') | « cc/trees/proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698