| 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 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1087 | 1087 |
| 1088 void GraphicsLayer::SetBackdropFilters(CompositorFilterOperations filters) { | 1088 void GraphicsLayer::SetBackdropFilters(CompositorFilterOperations filters) { |
| 1089 PlatformLayer()->SetBackgroundFilters(filters.ReleaseCcFilterOperations()); | 1089 PlatformLayer()->SetBackgroundFilters(filters.ReleaseCcFilterOperations()); |
| 1090 } | 1090 } |
| 1091 | 1091 |
| 1092 void GraphicsLayer::SetStickyPositionConstraint( | 1092 void GraphicsLayer::SetStickyPositionConstraint( |
| 1093 const WebLayerStickyPositionConstraint& sticky_constraint) { | 1093 const WebLayerStickyPositionConstraint& sticky_constraint) { |
| 1094 layer_->Layer()->SetStickyPositionConstraint(sticky_constraint); | 1094 layer_->Layer()->SetStickyPositionConstraint(sticky_constraint); |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 void GraphicsLayer::SetStickyMainThreadOffset(const WebSize& offset) { |
| 1098 layer_->Layer()->SetStickyMainThreadOffset(offset); |
| 1099 } |
| 1100 |
| 1097 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) { | 1101 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) { |
| 1098 if (image_layer_) | 1102 if (image_layer_) |
| 1099 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality); | 1103 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality); |
| 1100 } | 1104 } |
| 1101 | 1105 |
| 1102 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) { | 1106 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) { |
| 1103 if (painting_phase_ == phase) | 1107 if (painting_phase_ == phase) |
| 1104 return; | 1108 return; |
| 1105 painting_phase_ = phase; | 1109 painting_phase_ = phase; |
| 1106 SetNeedsDisplay(); | 1110 SetNeedsDisplay(); |
| (...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1292 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { | 1296 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { |
| 1293 if (!layer) { | 1297 if (!layer) { |
| 1294 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; | 1298 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; |
| 1295 return; | 1299 return; |
| 1296 } | 1300 } |
| 1297 | 1301 |
| 1298 String output = layer->LayerTreeAsText(blink::kLayerTreeIncludesDebugInfo); | 1302 String output = layer->LayerTreeAsText(blink::kLayerTreeIncludesDebugInfo); |
| 1299 LOG(INFO) << output.Utf8().data(); | 1303 LOG(INFO) << output.Utf8().data(); |
| 1300 } | 1304 } |
| 1301 #endif | 1305 #endif |
| OLD | NEW |