Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add unit test for impl side sticky position update. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1159 m_layer->layer()->setFilters(compositorFilters.releaseCcFilterOperations()); 1159 m_layer->layer()->setFilters(compositorFilters.releaseCcFilterOperations());
1160 } 1160 }
1161 1161
1162 void GraphicsLayer::setBackdropFilters(const FilterOperations& filters) 1162 void GraphicsLayer::setBackdropFilters(const FilterOperations& filters)
1163 { 1163 {
1164 CompositorFilterOperations compositorFilters; 1164 CompositorFilterOperations compositorFilters;
1165 SkiaImageFilterBuilder::buildFilterOperations(filters, &compositorFilters); 1165 SkiaImageFilterBuilder::buildFilterOperations(filters, &compositorFilters);
1166 m_layer->layer()->setBackgroundFilters(compositorFilters.releaseCcFilterOper ations()); 1166 m_layer->layer()->setBackgroundFilters(compositorFilters.releaseCcFilterOper ations());
1167 } 1167 }
1168 1168
1169 void GraphicsLayer::setStickyPositionConstraint(const WebLayerStickyPositionCons traint& stickyConstraint)
1170 {
1171 m_layer->layer()->setStickyPositionConstraint(stickyConstraint);
1172 }
1173
1169 void GraphicsLayer::setFilterQuality(SkFilterQuality filterQuality) 1174 void GraphicsLayer::setFilterQuality(SkFilterQuality filterQuality)
1170 { 1175 {
1171 if (m_imageLayer) 1176 if (m_imageLayer)
1172 m_imageLayer->setNearestNeighbor(filterQuality == kNone_SkFilterQuality) ; 1177 m_imageLayer->setNearestNeighbor(filterQuality == kNone_SkFilterQuality) ;
1173 } 1178 }
1174 1179
1175 void GraphicsLayer::setPaintingPhase(GraphicsLayerPaintingPhase phase) 1180 void GraphicsLayer::setPaintingPhase(GraphicsLayerPaintingPhase phase)
1176 { 1181 {
1177 if (m_paintingPhase == phase) 1182 if (m_paintingPhase == phase)
1178 return; 1183 return;
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 { 1356 {
1352 if (!layer) { 1357 if (!layer) {
1353 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1358 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1354 return; 1359 return;
1355 } 1360 }
1356 1361
1357 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1362 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1358 fprintf(stderr, "%s\n", output.utf8().data()); 1363 fprintf(stderr, "%s\n", output.utf8().data());
1359 } 1364 }
1360 #endif 1365 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698