OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 ContentLayerDelegate* contentLayerDelegateForTesting() const { | 271 ContentLayerDelegate* contentLayerDelegateForTesting() const { |
272 return m_contentLayerDelegate.get(); | 272 return m_contentLayerDelegate.get(); |
273 } | 273 } |
274 | 274 |
275 // DisplayItemClient methods | 275 // DisplayItemClient methods |
276 String debugName() const final { return m_client->debugName(this); } | 276 String debugName() const final { return m_client->debugName(this); } |
277 LayoutRect visualRect() const override; | 277 LayoutRect visualRect() const override; |
278 | 278 |
279 void setHasWillChangeTransformHint(bool); | 279 void setHasWillChangeTransformHint(bool); |
280 | 280 |
281 void setPreferredRasterScale(float); | 281 // See comments in cc::Layer::SetPreferredRasterBounds. |
282 void clearPreferredRasterScale(); | 282 void setPreferredRasterBounds(const IntSize&); |
| 283 void clearPreferredRasterBounds(); |
283 | 284 |
284 protected: | 285 protected: |
285 String debugName(cc::Layer*) const; | 286 String debugName(cc::Layer*) const; |
286 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } | 287 bool shouldFlattenTransform() const { return m_shouldFlattenTransform; } |
287 | 288 |
288 explicit GraphicsLayer(GraphicsLayerClient*); | 289 explicit GraphicsLayer(GraphicsLayerClient*); |
289 // for testing | 290 // for testing |
290 friend class CompositedLayerMappingTest; | 291 friend class CompositedLayerMappingTest; |
291 friend class PaintControllerPaintTestBase; | 292 friend class PaintControllerPaintTestBase; |
292 | 293 |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 | 392 |
392 std::unique_ptr<ContentLayerDelegate> m_contentLayerDelegate; | 393 std::unique_ptr<ContentLayerDelegate> m_contentLayerDelegate; |
393 | 394 |
394 WeakPersistent<ScrollableArea> m_scrollableArea; | 395 WeakPersistent<ScrollableArea> m_scrollableArea; |
395 GraphicsLayerDebugInfo m_debugInfo; | 396 GraphicsLayerDebugInfo m_debugInfo; |
396 int m_renderingContext3d; | 397 int m_renderingContext3d; |
397 | 398 |
398 std::unique_ptr<PaintController> m_paintController; | 399 std::unique_ptr<PaintController> m_paintController; |
399 | 400 |
400 IntRect m_previousInterestRect; | 401 IntRect m_previousInterestRect; |
401 float m_preferredRasterScale; | 402 IntSize m_preferredRasterBounds; |
402 bool m_hasPreferredRasterScale; | 403 bool m_hasPreferredRasterBounds; |
403 }; | 404 }; |
404 | 405 |
405 } // namespace blink | 406 } // namespace blink |
406 | 407 |
407 #ifndef NDEBUG | 408 #ifndef NDEBUG |
408 // Outside the blink namespace for ease of invocation from gdb. | 409 // Outside the blink namespace for ease of invocation from gdb. |
409 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); | 410 void PLATFORM_EXPORT showGraphicsLayerTree(const blink::GraphicsLayer*); |
410 #endif | 411 #endif |
411 | 412 |
412 #endif // GraphicsLayer_h | 413 #endif // GraphicsLayer_h |
OLD | NEW |