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 #ifndef CCLayerTreeHost_h | 5 #ifndef CCLayerTreeHost_h |
6 #define CCLayerTreeHost_h | 6 #define CCLayerTreeHost_h |
7 | 7 |
8 #include "CCAnimationEvents.h" | 8 #include "CCAnimationEvents.h" |
9 #include "CCGraphicsContext.h" | 9 #include "CCGraphicsContext.h" |
10 #include "CCLayerTreeHostClient.h" | 10 #include "CCLayerTreeHostClient.h" |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 const IntSize& deviceViewportSize() const { return m_deviceViewportSize; } | 184 const IntSize& deviceViewportSize() const { return m_deviceViewportSize; } |
185 | 185 |
186 void setPageScaleFactorAndLimits(float pageScaleFactor, float minPageScaleFa
ctor, float maxPageScaleFactor); | 186 void setPageScaleFactorAndLimits(float pageScaleFactor, float minPageScaleFa
ctor, float maxPageScaleFactor); |
187 | 187 |
188 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } | 188 void setBackgroundColor(SkColor color) { m_backgroundColor = color; } |
189 | 189 |
190 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 190 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
191 | 191 |
192 CCPrioritizedTextureManager* contentsTextureManager() const; | 192 CCPrioritizedTextureManager* contentsTextureManager() const; |
193 | 193 |
194 // This will cause contents texture manager to evict all textures, but | 194 void unlinkAllContentTextures(); |
195 // without deleting them. This happens after all content textures have | 195 void deleteUnlinkedTextures(); |
196 // already been deleted on impl, after getting a 0 allocation limit. | |
197 // Set during a commit, but before updateLayers. | |
198 void evictAllContentTextures(); | |
199 | 196 |
200 bool visible() const { return m_visible; } | 197 bool visible() const { return m_visible; } |
201 void setVisible(bool); | 198 void setVisible(bool); |
202 | 199 |
203 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor,
float scale, double durationSec); | 200 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor,
float scale, double durationSec); |
204 | 201 |
205 void applyScrollAndScale(const CCScrollAndScaleSet&); | 202 void applyScrollAndScale(const CCScrollAndScaleSet&); |
206 | 203 |
207 void startRateLimiter(WebKit::WebGraphicsContext3D*); | 204 void startRateLimiter(WebKit::WebGraphicsContext3D*); |
208 void stopRateLimiter(WebKit::WebGraphicsContext3D*); | 205 void stopRateLimiter(WebKit::WebGraphicsContext3D*); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 | 284 |
288 TextureList m_deleteTextureAfterCommitList; | 285 TextureList m_deleteTextureAfterCommitList; |
289 size_t m_partialTextureUpdateRequests; | 286 size_t m_partialTextureUpdateRequests; |
290 | 287 |
291 static bool s_needsFilterContext; | 288 static bool s_needsFilterContext; |
292 }; | 289 }; |
293 | 290 |
294 } | 291 } |
295 | 292 |
296 #endif | 293 #endif |
OLD | NEW |