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

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

Issue 2049063002: Revert of Use element id's for animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 } 1200 }
1201 1201
1202 PaintController& GraphicsLayer::getPaintController() 1202 PaintController& GraphicsLayer::getPaintController()
1203 { 1203 {
1204 RELEASE_ASSERT(drawsContent()); 1204 RELEASE_ASSERT(drawsContent());
1205 if (!m_paintController) 1205 if (!m_paintController)
1206 m_paintController = PaintController::create(); 1206 m_paintController = PaintController::create();
1207 return *m_paintController; 1207 return *m_paintController;
1208 } 1208 }
1209 1209
1210 void GraphicsLayer::setElementId(const CompositorElementId& id) 1210 void GraphicsLayer::setElementId(uint64_t id)
1211 { 1211 {
1212 if (WebLayer* layer = platformLayer()) 1212 if (WebLayer* layer = platformLayer())
1213 layer->setElementId(id); 1213 layer->setElementId(id);
1214 } 1214 }
1215 1215
1216 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties) 1216 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties)
1217 { 1217 {
1218 if (WebLayer* layer = platformLayer()) 1218 if (WebLayer* layer = platformLayer())
1219 layer->setCompositorMutableProperties(properties); 1219 layer->setCompositorMutableProperties(properties);
1220 } 1220 }
1221 1221
1222 } // namespace blink 1222 } // namespace blink
1223 1223
1224 #ifndef NDEBUG 1224 #ifndef NDEBUG
1225 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) 1225 void showGraphicsLayerTree(const blink::GraphicsLayer* layer)
1226 { 1226 {
1227 if (!layer) { 1227 if (!layer) {
1228 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1228 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1229 return; 1229 return;
1230 } 1230 }
1231 1231
1232 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1232 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1233 fprintf(stderr, "%s\n", output.utf8().data()); 1233 fprintf(stderr, "%s\n", output.utf8().data());
1234 } 1234 }
1235 #endif 1235 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698