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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11377111: cc: remove jank instead of checkerboard setting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 1 month 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 | cc/scheduler_state_machine.cc » ('j') | 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/layer_tree_host_impl.h" 5 #include "cc/layer_tree_host_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 435
436 targetRenderPass->appendQuadsForLayer(*it, &occlusionTracker, ap pendQuadsData); 436 targetRenderPass->appendQuadsForLayer(*it, &occlusionTracker, ap pendQuadsData);
437 } 437 }
438 } 438 }
439 439
440 if (appendQuadsData.hadOcclusionFromOutsideTargetSurface) 440 if (appendQuadsData.hadOcclusionFromOutsideTargetSurface)
441 targetRenderPass->setHasOcclusionFromOutsideTargetSurface(true); 441 targetRenderPass->setHasOcclusionFromOutsideTargetSurface(true);
442 442
443 if (appendQuadsData.hadMissingTiles) { 443 if (appendQuadsData.hadMissingTiles) {
444 bool layerHasAnimatingTransform = it->screenSpaceTransformIsAnimatin g() || it->drawTransformIsAnimating(); 444 bool layerHasAnimatingTransform = it->screenSpaceTransformIsAnimatin g() || it->drawTransformIsAnimating();
445 if (layerHasAnimatingTransform || Settings::jankInsteadOfCheckerboar d()) 445 if (layerHasAnimatingTransform)
446 drawFrame = false; 446 drawFrame = false;
447 } 447 }
448 448
449 occlusionTracker.leaveLayer(it); 449 occlusionTracker.leaveLayer(it);
450 } 450 }
451 451
452 #ifndef NDEBUG 452 #ifndef NDEBUG
453 for (size_t i = 0; i < frame.renderPasses.size(); ++i) { 453 for (size_t i = 0; i < frame.renderPasses.size(); ++i) {
454 for (size_t j = 0; j < frame.renderPasses[i]->quadList().size(); ++j) 454 for (size_t j = 0; j < frame.renderPasses[i]->quadList().size(); ++j)
455 DCHECK(frame.renderPasses[i]->quadList()[j]->sharedQuadStateId() >= 0); 455 DCHECK(frame.renderPasses[i]->quadList()[j]->sharedQuadStateId() >= 0);
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1488 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController(); 1488 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController();
1489 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); 1489 double monotonicTime = (time - base::TimeTicks()).InSecondsF();
1490 if (scrollbarController && scrollbarController->animate(monotonicTime)) 1490 if (scrollbarController && scrollbarController->animate(monotonicTime))
1491 m_client->setNeedsRedrawOnImplThread(); 1491 m_client->setNeedsRedrawOnImplThread();
1492 1492
1493 for (size_t i = 0; i < layer->children().size(); ++i) 1493 for (size_t i = 0; i < layer->children().size(); ++i)
1494 animateScrollbarsRecursive(layer->children()[i], time); 1494 animateScrollbarsRecursive(layer->children()[i], time);
1495 } 1495 }
1496 1496
1497 } // namespace cc 1497 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | cc/scheduler_state_machine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698