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

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: fix rebase error. 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 1198 matching lines...) Expand 10 before | Expand all | Expand 10 after
1209 return tracedValue; 1209 return tracedValue;
1210 } 1210 }
1211 1211
1212 PaintController* GraphicsLayer::paintController() 1212 PaintController* GraphicsLayer::paintController()
1213 { 1213 {
1214 if (!m_paintController) 1214 if (!m_paintController)
1215 m_paintController = PaintController::create(); 1215 m_paintController = PaintController::create();
1216 return m_paintController.get(); 1216 return m_paintController.get();
1217 } 1217 }
1218 1218
1219 void GraphicsLayer::setElementId(uint64_t id)
1220 {
1221 if (WebLayer* layer = platformLayer())
1222 layer->setElementId(id);
1223 }
1224
1225 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties)
1226 {
1227 if (WebLayer* layer = platformLayer())
1228 layer->setCompositorMutableProperties(properties);
1229 }
1230
1219 } // namespace blink 1231 } // namespace blink
1220 1232
1221 #ifndef NDEBUG 1233 #ifndef NDEBUG
1222 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) 1234 void showGraphicsLayerTree(const blink::GraphicsLayer* layer)
1223 { 1235 {
1224 if (!layer) { 1236 if (!layer) {
1225 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1237 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1226 return; 1238 return;
1227 } 1239 }
1228 1240
1229 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1241 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1230 fprintf(stderr, "%s\n", output.utf8().data()); 1242 fprintf(stderr, "%s\n", output.utf8().data());
1231 } 1243 }
1232 #endif 1244 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698