Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "CCLayerTreeHost.h" | 7 #include "CCLayerTreeHost.h" |
| 8 | 8 |
| 9 #include "CCFontAtlas.h" | 9 #include "CCFontAtlas.h" |
| 10 #include "CCGraphicsContext.h" | 10 #include "CCGraphicsContext.h" |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 455 if (layoutViewportSize().isEmpty()) | 455 if (layoutViewportSize().isEmpty()) |
| 456 return; | 456 return; |
| 457 | 457 |
| 458 m_contentsTextureManager->setMaxMemoryLimitBytes(memoryAllocationLimitBytes) ; | 458 m_contentsTextureManager->setMaxMemoryLimitBytes(memoryAllocationLimitBytes) ; |
| 459 | 459 |
| 460 updateLayers(rootLayer(), queue); | 460 updateLayers(rootLayer(), queue); |
| 461 } | 461 } |
| 462 | 462 |
| 463 static void setScale(LayerChromium* layer, float deviceScaleFactor, float pageSc aleFactor) | 463 static void setScale(LayerChromium* layer, float deviceScaleFactor, float pageSc aleFactor) |
| 464 { | 464 { |
| 465 if (layer->boundsContainPageScale()) | 465 if (false /*layer->boundsContainPageScale()*/) |
|
enne (OOO)
2012/09/13 19:40:54
I assume this can go away once with the correspond
Jeff Timanus
2012/09/13 19:58:50
Yes, this hack can go away once the NCCH change in
| |
| 466 layer->setContentsScale(deviceScaleFactor); | 466 layer->setContentsScale(deviceScaleFactor); |
| 467 else | 467 else |
| 468 layer->setContentsScale(deviceScaleFactor * pageScaleFactor); | 468 layer->setContentsScale(deviceScaleFactor * pageScaleFactor); |
| 469 } | 469 } |
| 470 | 470 |
| 471 static void updateLayerScale(LayerChromium* layer, float deviceScaleFactor, floa t pageScaleFactor) | 471 static void updateLayerScale(LayerChromium* layer, float deviceScaleFactor, floa t pageScaleFactor) |
| 472 { | 472 { |
| 473 setScale(layer, deviceScaleFactor, pageScaleFactor); | 473 setScale(layer, deviceScaleFactor, pageScaleFactor); |
| 474 | 474 |
| 475 LayerChromium* maskLayer = layer->maskLayer(); | 475 LayerChromium* maskLayer = layer->maskLayer(); |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 772 else | 772 else |
| 773 layer->notifyAnimationFinished(wallClockTime); | 773 layer->notifyAnimationFinished(wallClockTime); |
| 774 } | 774 } |
| 775 } | 775 } |
| 776 | 776 |
| 777 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) | 777 for (size_t childIndex = 0; childIndex < layer->children().size(); ++childIn dex) |
| 778 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); | 778 setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime); |
| 779 } | 779 } |
| 780 | 780 |
| 781 } // namespace WebCore | 781 } // namespace WebCore |
| OLD | NEW |