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

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

Issue 2929873002: Shifting layer position for sticky element to avoid passing unnessary variable to cc (Closed)
Patch Set: Created 3 years, 6 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 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
1100 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) { 1096 void GraphicsLayer::SetFilterQuality(SkFilterQuality filter_quality) {
1101 if (image_layer_) 1097 if (image_layer_)
1102 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality); 1098 image_layer_->SetNearestNeighbor(filter_quality == kNone_SkFilterQuality);
1103 } 1099 }
1104 1100
1105 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) { 1101 void GraphicsLayer::SetPaintingPhase(GraphicsLayerPaintingPhase phase) {
1106 if (painting_phase_ == phase) 1102 if (painting_phase_ == phase)
1107 return; 1103 return;
1108 painting_phase_ = phase; 1104 painting_phase_ = phase;
1109 SetNeedsDisplay(); 1105 SetNeedsDisplay();
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
1306 if (!layer) { 1302 if (!layer) {
1307 LOG(INFO) << "Cannot showGraphicsLayers for (nil)."; 1303 LOG(INFO) << "Cannot showGraphicsLayers for (nil).";
1308 return; 1304 return;
1309 } 1305 }
1310 1306
1311 String output = layer->GetLayerTreeAsTextForTesting( 1307 String output = layer->GetLayerTreeAsTextForTesting(
1312 0xffffffff & ~blink::kOutputAsLayerTree); 1308 0xffffffff & ~blink::kOutputAsLayerTree);
1313 LOG(INFO) << output.Utf8().data(); 1309 LOG(INFO) << output.Utf8().data();
1314 } 1310 }
1315 #endif 1311 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698