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

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: fixed compile error 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
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 "config.h" 5 #include "config.h"
6 6
7 #include "cc/layer_tree_host_impl.h" 7 #include "cc/layer_tree_host_impl.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 { 349 {
350 DCHECK(renderSurfaceLayerList.empty()); 350 DCHECK(renderSurfaceLayerList.empty());
351 DCHECK(m_rootLayerImpl); 351 DCHECK(m_rootLayerImpl);
352 DCHECK(m_renderer); // For maxTextureSize. 352 DCHECK(m_renderer); // For maxTextureSize.
353 353
354 { 354 {
355 updateRootScrollLayerImplTransform(); 355 updateRootScrollLayerImplTransform();
356 356
357 TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc"); 357 TRACE_EVENT0("cc", "LayerTreeHostImpl::calcDrawEtc");
358 float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor(); 358 float pageScaleFactor = m_pinchZoomViewport.pageScaleFactor();
359 LayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), devi ceViewportSize(), m_deviceScaleFactor, pageScaleFactor, &m_layerSorter, renderer Capabilities().maxTextureSize, renderSurfaceLayerList); 359 LayerTreeHostCommon::calculateDrawTransforms(m_rootLayerImpl.get(), devi ceViewportSize(), m_deviceScaleFactor, pageScaleFactor, &m_layerSorter, renderer Capabilities().maxTextureSize, m_settings.canUseLCDText, renderSurfaceLayerList) ;
360 360
361 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList) ; 361 trackDamageForAllSurfaces(m_rootLayerImpl.get(), renderSurfaceLayerList) ;
362 } 362 }
363 } 363 }
364 364
365 void LayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<RenderPass> rende rPass) 365 void LayerTreeHostImpl::FrameData::appendRenderPass(scoped_ptr<RenderPass> rende rPass)
366 { 366 {
367 RenderPass* pass = renderPass.get(); 367 RenderPass* pass = renderPass.get();
368 renderPasses.push_back(pass); 368 renderPasses.push_back(pass);
369 renderPassesById.set(pass->id(), renderPass.Pass()); 369 renderPassesById.set(pass->id(), renderPass.Pass());
(...skipping 1119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1489 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController(); 1489 ScrollbarAnimationController* scrollbarController = layer->scrollbarAnimatio nController();
1490 double monotonicTime = (time - base::TimeTicks()).InSecondsF(); 1490 double monotonicTime = (time - base::TimeTicks()).InSecondsF();
1491 if (scrollbarController && scrollbarController->animate(monotonicTime)) 1491 if (scrollbarController && scrollbarController->animate(monotonicTime))
1492 m_client->setNeedsRedrawOnImplThread(); 1492 m_client->setNeedsRedrawOnImplThread();
1493 1493
1494 for (size_t i = 0; i < layer->children().size(); ++i) 1494 for (size_t i = 0; i < layer->children().size(); ++i)
1495 animateScrollbarsRecursive(layer->children()[i], time); 1495 animateScrollbarsRecursive(layer->children()[i], time);
1496 } 1496 }
1497 1497
1498 } // namespace cc 1498 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698