| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 } | 129 } |
| 130 } | 130 } |
| 131 | 131 |
| 132 void ImageQualityController::highQualityRepaintTimerFired(Timer<ImageQualityCont
roller>*) | 132 void ImageQualityController::highQualityRepaintTimerFired(Timer<ImageQualityCont
roller>*) |
| 133 { | 133 { |
| 134 if (!m_animatedResizeIsActive && !m_liveResizeOptimizationIsActive) | 134 if (!m_animatedResizeIsActive && !m_liveResizeOptimizationIsActive) |
| 135 return; | 135 return; |
| 136 m_animatedResizeIsActive = false; | 136 m_animatedResizeIsActive = false; |
| 137 | 137 |
| 138 for (ObjectLayerSizeMap::iterator it = m_objectLayerSizeMap.begin(); it != m
_objectLayerSizeMap.end(); ++it) { | 138 for (ObjectLayerSizeMap::iterator it = m_objectLayerSizeMap.begin(); it != m
_objectLayerSizeMap.end(); ++it) { |
| 139 it->key->setShouldDoFullPaintInvalidation(true); | 139 it->key->scheduleVisualUpdate(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 m_liveResizeOptimizationIsActive = false; | 142 m_liveResizeOptimizationIsActive = false; |
| 143 } | 143 } |
| 144 | 144 |
| 145 void ImageQualityController::restartTimer() | 145 void ImageQualityController::restartTimer() |
| 146 { | 146 { |
| 147 m_timer.startOneShot(cLowQualityTimeThreshold, FROM_HERE); | 147 m_timer.startOneShot(cLowQualityTimeThreshold, FROM_HERE); |
| 148 } | 148 } |
| 149 | 149 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 // This object has been resized to two different sizes while the timer | 215 // This object has been resized to two different sizes while the timer |
| 216 // is active, so draw at low quality, set the flag for animated resizes and | 216 // is active, so draw at low quality, set the flag for animated resizes and |
| 217 // the object to the list for high quality redraw. | 217 // the object to the list for high quality redraw. |
| 218 set(object, innerMap, layer, scaledLayoutSize); | 218 set(object, innerMap, layer, scaledLayoutSize); |
| 219 m_animatedResizeIsActive = true; | 219 m_animatedResizeIsActive = true; |
| 220 restartTimer(); | 220 restartTimer(); |
| 221 return true; | 221 return true; |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace blink | 224 } // namespace blink |
| OLD | NEW |