| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 bool isEmpty() { return m_objectLayerSizeMap.isEmpty(); } | 75 bool isEmpty() { return m_objectLayerSizeMap.isEmpty(); } |
| 76 | 76 |
| 77 void highQualityRepaintTimerFired(Timer<ImageQualityController>*); | 77 void highQualityRepaintTimerFired(Timer<ImageQualityController>*); |
| 78 void restartTimer(); | 78 void restartTimer(); |
| 79 | 79 |
| 80 // Only for use in testing. | 80 // Only for use in testing. |
| 81 void setTimer(Timer<ImageQualityController>*); | 81 void setTimer(Timer<ImageQualityController>*); |
| 82 | 82 |
| 83 ObjectLayerSizeMap m_objectLayerSizeMap; | 83 ObjectLayerSizeMap m_objectLayerSizeMap; |
| 84 OwnPtr<Timer<ImageQualityController>> m_timer; | 84 OwnPtr<Timer<ImageQualityController>> m_timer; |
| 85 bool m_liveResizeOptimizationIsActive; | |
| 86 | 85 |
| 87 // For calling set(). | 86 // For calling set(). |
| 88 FRIEND_TEST_ALL_PREFIXES(LayoutPartTest, DestroyUpdatesImageQualityControlle
r); | 87 FRIEND_TEST_ALL_PREFIXES(LayoutPartTest, DestroyUpdatesImageQualityControlle
r); |
| 89 | 88 |
| 90 // For calling setTimer(), | 89 // For calling setTimer(), |
| 91 FRIEND_TEST_ALL_PREFIXES(ImageQualityControllerTest, LowQualityFilterForLive
Resize); | 90 FRIEND_TEST_ALL_PREFIXES(ImageQualityControllerTest, LowQualityFilterForLive
Resize); |
| 92 FRIEND_TEST_ALL_PREFIXES(ImageQualityControllerTest, LowQualityFilterForResi
zingImage); | 91 FRIEND_TEST_ALL_PREFIXES(ImageQualityControllerTest, LowQualityFilterForResi
zingImage); |
| 93 FRIEND_TEST_ALL_PREFIXES(ImageQualityControllerTest, MediumQualityFilterForN
otAnimatedWhileAnotherAnimates); | 92 FRIEND_TEST_ALL_PREFIXES(ImageQualityControllerTest, MediumQualityFilterForN
otAnimatedWhileAnotherAnimates); |
| 94 FRIEND_TEST_ALL_PREFIXES(ImageQualityControllerTest, DontKickTheAnimationTim
erWhenPaintingAtTheSameSize); | 93 FRIEND_TEST_ALL_PREFIXES(ImageQualityControllerTest, DontKickTheAnimationTim
erWhenPaintingAtTheSameSize); |
| 95 }; | 94 }; |
| 96 | 95 |
| 97 } // namespace blink | 96 } // namespace blink |
| 98 | 97 |
| 99 #endif | 98 #endif |
| OLD | NEW |