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

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

Issue 380853002: cc: Don't explode on SingleThreadProxy::SetDeferCommits (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 TRACE_EVENT0("cc", "SingleThreadProxy::SetNeedsRedraw"); 194 TRACE_EVENT0("cc", "SingleThreadProxy::SetNeedsRedraw");
195 SetNeedsRedrawRectOnImplThread(damage_rect); 195 SetNeedsRedrawRectOnImplThread(damage_rect);
196 client_->ScheduleComposite(); 196 client_->ScheduleComposite();
197 } 197 }
198 198
199 void SingleThreadProxy::SetNextCommitWaitsForActivation() { 199 void SingleThreadProxy::SetNextCommitWaitsForActivation() {
200 // There is no activation here other than commit. So do nothing. 200 // There is no activation here other than commit. So do nothing.
201 } 201 }
202 202
203 void SingleThreadProxy::SetDeferCommits(bool defer_commits) { 203 void SingleThreadProxy::SetDeferCommits(bool defer_commits) {
204 // Thread-only feature.
205 NOTREACHED();
206 } 204 }
207 205
208 bool SingleThreadProxy::CommitRequested() const { return false; } 206 bool SingleThreadProxy::CommitRequested() const { return false; }
209 207
210 bool SingleThreadProxy::BeginMainFrameRequested() const { return false; } 208 bool SingleThreadProxy::BeginMainFrameRequested() const { return false; }
211 209
212 size_t SingleThreadProxy::MaxPartialTextureUpdates() const { 210 size_t SingleThreadProxy::MaxPartialTextureUpdates() const {
213 return std::numeric_limits<size_t>::max(); 211 return std::numeric_limits<size_t>::max();
214 } 212 }
215 213
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 void SingleThreadProxy::DidSwapFrame() { 453 void SingleThreadProxy::DidSwapFrame() {
456 if (next_frame_is_newly_committed_frame_) { 454 if (next_frame_is_newly_committed_frame_) {
457 next_frame_is_newly_committed_frame_ = false; 455 next_frame_is_newly_committed_frame_ = false;
458 layer_tree_host_->DidCommitAndDrawFrame(); 456 layer_tree_host_->DidCommitAndDrawFrame();
459 } 457 }
460 } 458 }
461 459
462 bool SingleThreadProxy::CommitPendingForTesting() { return false; } 460 bool SingleThreadProxy::CommitPendingForTesting() { return false; }
463 461
464 } // namespace cc 462 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698