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

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: Merge with master and add comments to WebLayerStickyPositionConstraint members. 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 1134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1145 void GraphicsLayer::setFilters(CompositorFilterOperations filters) 1145 void GraphicsLayer::setFilters(CompositorFilterOperations filters)
1146 { 1146 {
1147 platformLayer()->setFilters(filters.releaseCcFilterOperations()); 1147 platformLayer()->setFilters(filters.releaseCcFilterOperations());
1148 } 1148 }
1149 1149
1150 void GraphicsLayer::setBackdropFilters(CompositorFilterOperations filters) 1150 void GraphicsLayer::setBackdropFilters(CompositorFilterOperations filters)
1151 { 1151 {
1152 platformLayer()->setBackgroundFilters(filters.releaseCcFilterOperations()); 1152 platformLayer()->setBackgroundFilters(filters.releaseCcFilterOperations());
1153 } 1153 }
1154 1154
1155 void GraphicsLayer::setStickyPositionConstraint(const WebLayerStickyPositionCons traint& stickyConstraint)
1156 {
1157 m_layer->layer()->setStickyPositionConstraint(stickyConstraint);
1158 }
1159
1155 void GraphicsLayer::setFilterQuality(SkFilterQuality filterQuality) 1160 void GraphicsLayer::setFilterQuality(SkFilterQuality filterQuality)
1156 { 1161 {
1157 if (m_imageLayer) 1162 if (m_imageLayer)
1158 m_imageLayer->setNearestNeighbor(filterQuality == kNone_SkFilterQuality) ; 1163 m_imageLayer->setNearestNeighbor(filterQuality == kNone_SkFilterQuality) ;
1159 } 1164 }
1160 1165
1161 void GraphicsLayer::setPaintingPhase(GraphicsLayerPaintingPhase phase) 1166 void GraphicsLayer::setPaintingPhase(GraphicsLayerPaintingPhase phase)
1162 { 1167 {
1163 if (m_paintingPhase == phase) 1168 if (m_paintingPhase == phase)
1164 return; 1169 return;
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 { 1351 {
1347 if (!layer) { 1352 if (!layer) {
1348 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1353 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1349 return; 1354 return;
1350 } 1355 }
1351 1356
1352 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1357 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1353 fprintf(stderr, "%s\n", output.utf8().data()); 1358 fprintf(stderr, "%s\n", output.utf8().data());
1354 } 1359 }
1355 #endif 1360 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/GraphicsLayer.h ('k') | third_party/WebKit/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698