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

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

Issue 1534813004: Run smooth scroll animations on the compositor when possible (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 5 years 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 1106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 void GraphicsLayer::pauseAnimation(int animationId, double timeOffset) 1117 void GraphicsLayer::pauseAnimation(int animationId, double timeOffset)
1118 { 1118 {
1119 platformLayer()->pauseAnimation(animationId, timeOffset); 1119 platformLayer()->pauseAnimation(animationId, timeOffset);
1120 } 1120 }
1121 1121
1122 void GraphicsLayer::removeAnimation(int animationId) 1122 void GraphicsLayer::removeAnimation(int animationId)
1123 { 1123 {
1124 platformLayer()->removeAnimation(animationId); 1124 platformLayer()->removeAnimation(animationId);
1125 } 1125 }
1126 1126
1127 void GraphicsLayer::abortAnimation(int animationId)
1128 {
1129 platformLayer()->abortAnimation(animationId);
1130 }
1131
1127 WebLayer* GraphicsLayer::platformLayer() const 1132 WebLayer* GraphicsLayer::platformLayer() const
1128 { 1133 {
1129 return m_layer->layer(); 1134 return m_layer->layer();
1130 } 1135 }
1131 1136
1132 void GraphicsLayer::setFilters(const FilterOperations& filters) 1137 void GraphicsLayer::setFilters(const FilterOperations& filters)
1133 { 1138 {
1134 SkiaImageFilterBuilder builder; 1139 SkiaImageFilterBuilder builder;
1135 OwnPtr<WebFilterOperations> webFilters = adoptPtr(Platform::current()->compo sitorSupport()->createFilterOperations()); 1140 OwnPtr<WebFilterOperations> webFilters = adoptPtr(Platform::current()->compo sitorSupport()->createFilterOperations());
1136 FilterOutsets outsets = filters.outsets(); 1141 FilterOutsets outsets = filters.outsets();
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
1249 { 1254 {
1250 if (!layer) { 1255 if (!layer) {
1251 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1256 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1252 return; 1257 return;
1253 } 1258 }
1254 1259
1255 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1260 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1256 fprintf(stderr, "%s\n", output.utf8().data()); 1261 fprintf(stderr, "%s\n", output.utf8().data());
1257 } 1262 }
1258 #endif 1263 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698