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

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

Issue 1405993008: compositor-worker: plumb element id and mutable properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . 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 1197 matching lines...) Expand 10 before | Expand all | Expand 10 after
1208 return tracedValue; 1208 return tracedValue;
1209 } 1209 }
1210 1210
1211 PaintController* GraphicsLayer::paintController() 1211 PaintController* GraphicsLayer::paintController()
1212 { 1212 {
1213 if (!m_paintController) 1213 if (!m_paintController)
1214 m_paintController = PaintController::create(); 1214 m_paintController = PaintController::create();
1215 return m_paintController.get(); 1215 return m_paintController.get();
1216 } 1216 }
1217 1217
1218 void GraphicsLayer::setElementId(uint64_t id)
1219 {
1220 if (WebLayer* layer = platformLayer())
1221 layer->setElementId(id);
1222 }
1223
1224 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties)
1225 {
1226 if (WebLayer* layer = platformLayer())
1227 layer->setCompositorMutableProperties(properties);
1228 }
1229
1218 } // namespace blink 1230 } // namespace blink
1219 1231
1220 #ifndef NDEBUG 1232 #ifndef NDEBUG
1221 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) 1233 void showGraphicsLayerTree(const blink::GraphicsLayer* layer)
1222 { 1234 {
1223 if (!layer) { 1235 if (!layer) {
1224 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1236 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1225 return; 1237 return;
1226 } 1238 }
1227 1239
1228 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1240 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1229 fprintf(stderr, "%s\n", output.utf8().data()); 1241 fprintf(stderr, "%s\n", output.utf8().data());
1230 } 1242 }
1231 #endif 1243 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698