OLD | NEW |
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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 if (WebLayer* layer = platformLayer()) | 1239 if (WebLayer* layer = platformLayer()) |
1240 layer->setElementId(id); | 1240 layer->setElementId(id); |
1241 } | 1241 } |
1242 | 1242 |
1243 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties) | 1243 void GraphicsLayer::setCompositorMutableProperties(uint32_t properties) |
1244 { | 1244 { |
1245 if (WebLayer* layer = platformLayer()) | 1245 if (WebLayer* layer = platformLayer()) |
1246 layer->setCompositorMutableProperties(properties); | 1246 layer->setCompositorMutableProperties(properties); |
1247 } | 1247 } |
1248 | 1248 |
| 1249 void GraphicsLayer::setCanUseClientCacheStatus(bool b) |
| 1250 { |
| 1251 if (!drawsContent()) |
| 1252 return; |
| 1253 paintController().setCanUseClientCacheStatus(b); |
| 1254 } |
| 1255 |
1249 } // namespace blink | 1256 } // namespace blink |
1250 | 1257 |
1251 #ifndef NDEBUG | 1258 #ifndef NDEBUG |
1252 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) | 1259 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) |
1253 { | 1260 { |
1254 if (!layer) { | 1261 if (!layer) { |
1255 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1262 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
1256 return; | 1263 return; |
1257 } | 1264 } |
1258 | 1265 |
1259 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1266 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1260 fprintf(stderr, "%s\n", output.utf8().data()); | 1267 fprintf(stderr, "%s\n", output.utf8().data()); |
1261 } | 1268 } |
1262 #endif | 1269 #endif |
OLD | NEW |