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

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

Issue 1973083002: Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
1254 } 1254 }
1255 1255
1256 PaintController& GraphicsLayer::getPaintController() 1256 PaintController& GraphicsLayer::getPaintController()
1257 { 1257 {
1258 RELEASE_ASSERT(drawsContent()); 1258 RELEASE_ASSERT(drawsContent());
1259 if (!m_paintController) 1259 if (!m_paintController)
1260 m_paintController = PaintController::create(); 1260 m_paintController = PaintController::create();
1261 return *m_paintController; 1261 return *m_paintController;
1262 } 1262 }
1263 1263
1264 void GraphicsLayer::setElementId(uint64_t id) 1264 void GraphicsLayer::setElementId(const CompositorElementId& id)
1265 { 1265 {
1266 if (WebLayer* layer = platformLayer()) 1266 if (WebLayer* layer = platformLayer())
1267 layer->setElementId(id); 1267 layer->setElementId(id);
1268 } 1268 }
1269 1269
1270 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties) 1270 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties)
1271 { 1271 {
1272 if (WebLayer* layer = platformLayer()) 1272 if (WebLayer* layer = platformLayer())
1273 layer->setCompositorMutableProperties(properties); 1273 layer->setCompositorMutableProperties(properties);
1274 } 1274 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
1371 { 1371 {
1372 if (!layer) { 1372 if (!layer) {
1373 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1373 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1374 return; 1374 return;
1375 } 1375 }
1376 1376
1377 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1377 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1378 fprintf(stderr, "%s\n", output.utf8().data()); 1378 fprintf(stderr, "%s\n", output.utf8().data());
1379 } 1379 }
1380 #endif 1380 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698