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

Side by Side Diff: cc/layer_tree_host_impl.cc

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reverted whitespace change Created 8 years 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 | « cc/layer_tree_host_common_unittest.cc ('k') | cc/layer_tree_host_impl_unittest.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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 void LayerTreeHostImpl::calculateRenderSurfaceLayerList(LayerList& renderSurface LayerList) 404 void LayerTreeHostImpl::calculateRenderSurfaceLayerList(LayerList& renderSurface LayerList)
405 { 405 {
406 DCHECK(renderSurfaceLayerList.empty()); 406 DCHECK(renderSurfaceLayerList.empty());
407 DCHECK(rootLayer()); 407 DCHECK(rootLayer());
408 DCHECK(m_renderer); // For maxTextureSize. 408 DCHECK(m_renderer); // For maxTextureSize.
409 { 409 {
410 updateRootScrollLayerImplTransform(); 410 updateRootScrollLayerImplTransform();
411 411
412 TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc"); 412 TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc");
413 float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor(); 413 float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor();
414 LayerTreeHostCommon::calculateDrawProperties(rootLayer(), deviceViewport Size(), m_deviceScaleFactor, pageScaleFactor, rendererCapabilities().maxTextureS ize, renderSurfaceLayerList); 414 LayerTreeHostCommon::calculateDrawProperties(rootLayer(), deviceViewport Size(), m_deviceScaleFactor, pageScaleFactor, rendererCapabilities().maxTextureS ize, m_settings.canUseLCDText, renderSurfaceLayerList);
415 } 415 }
416 } 416 }
417 417
418 void LayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<RenderPass> rende rPass) 418 void LayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<RenderPass> rende rPass)
419 { 419 {
420 RenderPass* pass = renderPass.get(); 420 RenderPass* pass = renderPass.get();
421 renderPasses.push_back(pass); 421 renderPasses.push_back(pass);
422 renderPassesById.set(pass->id, renderPass.Pass()); 422 renderPassesById.set(pass->id, renderPass.Pass());
423 } 423 }
424 424
(...skipping 1295 matching lines...) Expand 10 before | Expand all | Expand 10 after
1720 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController(); 1720 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController();
1721 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); 1721 double monotonicTime = (time - base::TimeTicks()).InSecondsF();
1722 if (scrollbarController && scrollbarController->animate(monotonicTime)) 1722 if (scrollbarController && scrollbarController->animate(monotonicTime))
1723 m_client->setNeedsRedrawOnImplThread(); 1723 m_client->setNeedsRedrawOnImplThread();
1724 1724
1725 for (size_t i = 0; i < layer->children().size(); ++i) 1725 for (size_t i = 0; i < layer->children().size(); ++i)
1726 animateScrollbarsRecursive(layer->children()[i], time); 1726 animateScrollbarsRecursive(layer->children()[i], time);
1727 } 1727 }
1728 1728
1729 } // namespace cc 1729 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layer_tree_host_common_unittest.cc ('k') | cc/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698