OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 void setDebugBackgroundColor(const Color&) { } | 399 void setDebugBackgroundColor(const Color&) { } |
400 void setDebugBorder(const Color&, float /*borderWidth*/) { } | 400 void setDebugBorder(const Color&, float /*borderWidth*/) { } |
401 | 401 |
402 // z-position is the z-equivalent of position(). It's only used for debuggin
g purposes. | 402 // z-position is the z-equivalent of position(). It's only used for debuggin
g purposes. |
403 float zPosition() const { return m_zPosition; } | 403 float zPosition() const { return m_zPosition; } |
404 void setZPosition(float); | 404 void setZPosition(float); |
405 | 405 |
406 void distributeOpacity(float); | 406 void distributeOpacity(float); |
407 float accumulatedOpacity() const; | 407 float accumulatedOpacity() const; |
408 | 408 |
409 void setMaintainsPixelAlignment(bool maintainsAlignment) { m_maintainsPixelA
lignment = maintainsAlignment; } | |
410 bool maintainsPixelAlignment() const { return m_maintainsPixelAlignment; } | |
411 | |
412 float pageScaleFactor() const { return m_client ? m_client->pageScaleFactor(
) : 1; } | |
413 float deviceScaleFactor() const { return m_client ? m_client->deviceScaleFac
tor() : 1; } | |
414 | |
415 void deviceOrPageScaleFactorChanged() { } | |
416 void noteDeviceOrPageScaleFactorChangedIncludingDescendants(); | |
417 | |
418 // If the exposed rect of this layer changes, returns true if this or descen
dant layers need a flush, | 409 // If the exposed rect of this layer changes, returns true if this or descen
dant layers need a flush, |
419 // for example to allocate new tiles. | 410 // for example to allocate new tiles. |
420 bool visibleRectChangeRequiresFlush(const FloatRect& /* clipRect */) const {
return false; } | 411 bool visibleRectChangeRequiresFlush(const FloatRect& /* clipRect */) const {
return false; } |
421 | 412 |
422 // Return a string with a human readable form of the layer tree, If debug is
true | 413 // Return a string with a human readable form of the layer tree, If debug is
true |
423 // pointers for the layers and timing data will be included in the returned
string. | 414 // pointers for the layers and timing data will be included in the returned
string. |
424 String layerTreeAsText(LayerTreeAsTextBehavior = LayerTreeAsTextBehaviorNorm
al) const; | 415 String layerTreeAsText(LayerTreeAsTextBehavior = LayerTreeAsTextBehaviorNorm
al) const; |
425 | 416 |
426 // Return an estimate of the backing store memory cost (in bytes). May be in
correct for tiled layers. | 417 // Return an estimate of the backing store memory cost (in bytes). May be in
correct for tiled layers. |
427 double backingStoreMemoryEstimate() const; | 418 double backingStoreMemoryEstimate() const; |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 float m_zPosition; | 519 float m_zPosition; |
529 | 520 |
530 FilterOperations m_filters; | 521 FilterOperations m_filters; |
531 | 522 |
532 bool m_contentsOpaque : 1; | 523 bool m_contentsOpaque : 1; |
533 bool m_preserves3D: 1; | 524 bool m_preserves3D: 1; |
534 bool m_backfaceVisibility : 1; | 525 bool m_backfaceVisibility : 1; |
535 bool m_masksToBounds : 1; | 526 bool m_masksToBounds : 1; |
536 bool m_drawsContent : 1; | 527 bool m_drawsContent : 1; |
537 bool m_contentsVisible : 1; | 528 bool m_contentsVisible : 1; |
538 bool m_maintainsPixelAlignment : 1; | |
539 bool m_showDebugBorder : 1; | 529 bool m_showDebugBorder : 1; |
540 bool m_showRepaintCounter : 1; | 530 bool m_showRepaintCounter : 1; |
541 | 531 |
542 GraphicsLayerPaintingPhase m_paintingPhase; | 532 GraphicsLayerPaintingPhase m_paintingPhase; |
543 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat
ion of layer contents | 533 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat
ion of layer contents |
544 | 534 |
545 Vector<GraphicsLayer*> m_children; | 535 Vector<GraphicsLayer*> m_children; |
546 GraphicsLayer* m_parent; | 536 GraphicsLayer* m_parent; |
547 | 537 |
548 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. | 538 GraphicsLayer* m_maskLayer; // Reference to mask layer. We don't own this. |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 | 576 |
587 | 577 |
588 } // namespace WebCore | 578 } // namespace WebCore |
589 | 579 |
590 #ifndef NDEBUG | 580 #ifndef NDEBUG |
591 // Outside the WebCore namespace for ease of invocation from gdb. | 581 // Outside the WebCore namespace for ease of invocation from gdb. |
592 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 582 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
593 #endif | 583 #endif |
594 | 584 |
595 #endif // GraphicsLayer_h | 585 #endif // GraphicsLayer_h |
OLD | NEW |