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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1086 | 1086 |
1087 void GraphicsLayer::SetBackdropFilters(CompositorFilterOperations filters) { | 1087 void GraphicsLayer::SetBackdropFilters(CompositorFilterOperations filters) { |
1088 PlatformLayer()->SetBackgroundFilters(filters.ReleaseCcFilterOperations()); | 1088 PlatformLayer()->SetBackgroundFilters(filters.ReleaseCcFilterOperations()); |
1089 } | 1089 } |
1090 | 1090 |
1091 void GraphicsLayer::SetStickyPositionConstraint( | 1091 void GraphicsLayer::SetStickyPositionConstraint( |
1092 const WebLayerStickyPositionConstraint& sticky_constraint) { | 1092 const WebLayerStickyPositionConstraint& sticky_constraint) { |
1093 layer_->Layer()->SetStickyPositionConstraint(sticky_constraint); | 1093 layer_->Layer()->SetStickyPositionConstraint(sticky_constraint); |
1094 } | 1094 } |
1095 | 1095 |
| 1096 void GraphicsLayer::SetOffsetForStickyPosition(const WebSize& offset) { |
| 1097 layer_->Layer()->SetOffsetForStickyPosition(offset); |
| 1098 } |
| 1099 |
1096 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) { | 1100 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) { |
1097 if (image_layer_) | 1101 if (image_layer_) |
1098 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality); | 1102 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality); |
1099 } | 1103 } |
1100 | 1104 |
1101 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) { | 1105 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) { |
1102 if (painting_phase_ == phase) | 1106 if (painting_phase_ == phase) |
1103 return; | 1107 return; |
1104 painting_phase_ = phase; | 1108 painting_phase_ = phase; |
1105 SetNeedsDisplay(); | 1109 SetNeedsDisplay(); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1302 if (!layer) { | 1306 if (!layer) { |
1303 LOG(INFO) << "Cannot showGraphicsLayers for (nil)."; | 1307 LOG(INFO) << "Cannot showGraphicsLayers for (nil)."; |
1304 return; | 1308 return; |
1305 } | 1309 } |
1306 | 1310 |
1307 String output = layer->GetLayerTreeAsTextForTesting( | 1311 String output = layer->GetLayerTreeAsTextForTesting( |
1308 0xffffffff & ~blink::kOutputAsLayerTree); | 1312 0xffffffff & ~blink::kOutputAsLayerTree); |
1309 LOG(INFO) << output.Utf8().data(); | 1313 LOG(INFO) << output.Utf8().data(); |
1310 } | 1314 } |
1311 #endif | 1315 #endif |
OLD | NEW |