| 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 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1085 | 1085 |
| 1086 void GraphicsLayer::SetBackdropFilters(CompositorFilterOperations filters) { | 1086 void GraphicsLayer::SetBackdropFilters(CompositorFilterOperations filters) { |
| 1087 PlatformLayer()->SetBackgroundFilters(filters.ReleaseCcFilterOperations()); | 1087 PlatformLayer()->SetBackgroundFilters(filters.ReleaseCcFilterOperations()); |
| 1088 } | 1088 } |
| 1089 | 1089 |
| 1090 void GraphicsLayer::SetStickyPositionConstraint( | 1090 void GraphicsLayer::SetStickyPositionConstraint( |
| 1091 const WebLayerStickyPositionConstraint& sticky_constraint) { | 1091 const WebLayerStickyPositionConstraint& sticky_constraint) { |
| 1092 layer_->Layer()->SetStickyPositionConstraint(sticky_constraint); | 1092 layer_->Layer()->SetStickyPositionConstraint(sticky_constraint); |
| 1093 } | 1093 } |
| 1094 | 1094 |
| 1095 void GraphicsLayer::SetOffsetForStickyPosition(const WebSize& offset) { | |
| 1096 layer_->Layer()->SetOffsetForStickyPosition(offset); | |
| 1097 } | |
| 1098 | |
| 1099 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) { | 1095 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) { |
| 1100 if (image_layer_) | 1096 if (image_layer_) |
| 1101 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality); | 1097 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality); |
| 1102 } | 1098 } |
| 1103 | 1099 |
| 1104 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) { | 1100 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) { |
| 1105 if (painting_phase_ == phase) | 1101 if (painting_phase_ == phase) |
| 1106 return; | 1102 return; |
| 1107 painting_phase_ = phase; | 1103 painting_phase_ = phase; |
| 1108 SetNeedsDisplay(); | 1104 SetNeedsDisplay(); |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1207 if (!layer) { | 1203 if (!layer) { |
| 1208 LOG(INFO) << "Cannot showGraphicsLayers for (nil)."; | 1204 LOG(INFO) << "Cannot showGraphicsLayers for (nil)."; |
| 1209 return; | 1205 return; |
| 1210 } | 1206 } |
| 1211 | 1207 |
| 1212 String output = layer->GetLayerTreeAsTextForTesting( | 1208 String output = layer->GetLayerTreeAsTextForTesting( |
| 1213 0xffffffff & ~blink::kOutputAsLayerTree); | 1209 0xffffffff & ~blink::kOutputAsLayerTree); |
| 1214 LOG(INFO) << output.Utf8().data(); | 1210 LOG(INFO) << output.Utf8().data(); |
| 1215 } | 1211 } |
| 1216 #endif | 1212 #endif |
| OLD | NEW |