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

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

Issue 23694031: Fix race conditions in window snapshot code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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/output/context_provider.h" 9 #include "cc/output/context_provider.h"
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } 241 }
242 242
243 void SingleThreadProxy::SetNeedsRedraw(gfx::Rect damage_rect) { 243 void SingleThreadProxy::SetNeedsRedraw(gfx::Rect damage_rect) {
244 SetNeedsRedrawRectOnImplThread(damage_rect); 244 SetNeedsRedrawRectOnImplThread(damage_rect);
245 } 245 }
246 246
247 void SingleThreadProxy::SetNextCommitWaitsForActivation() { 247 void SingleThreadProxy::SetNextCommitWaitsForActivation() {
248 // There is no activation here other than commit. So do nothing. 248 // There is no activation here other than commit. So do nothing.
249 } 249 }
250 250
251 void SingleThreadProxy::SetNextCommitForcesRedraw() {
252 layer_tree_host_impl_->SetFullRootLayerDamage();
253 }
254
251 void SingleThreadProxy::SetDeferCommits(bool defer_commits) { 255 void SingleThreadProxy::SetDeferCommits(bool defer_commits) {
252 // Thread-only feature. 256 // Thread-only feature.
253 NOTREACHED(); 257 NOTREACHED();
254 } 258 }
255 259
256 bool SingleThreadProxy::CommitRequested() const { return false; } 260 bool SingleThreadProxy::CommitRequested() const { return false; }
257 261
258 size_t SingleThreadProxy::MaxPartialTextureUpdates() const { 262 size_t SingleThreadProxy::MaxPartialTextureUpdates() const {
259 return std::numeric_limits<size_t>::max(); 263 return std::numeric_limits<size_t>::max();
260 } 264 }
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 void SingleThreadProxy::DidSwapFrame() { 505 void SingleThreadProxy::DidSwapFrame() {
502 if (next_frame_is_newly_committed_frame_) { 506 if (next_frame_is_newly_committed_frame_) {
503 next_frame_is_newly_committed_frame_ = false; 507 next_frame_is_newly_committed_frame_ = false;
504 layer_tree_host_->DidCommitAndDrawFrame(); 508 layer_tree_host_->DidCommitAndDrawFrame();
505 } 509 }
506 } 510 }
507 511
508 bool SingleThreadProxy::CommitPendingForTesting() { return false; } 512 bool SingleThreadProxy::CommitPendingForTesting() { return false; }
509 513
510 } // namespace cc 514 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698