| 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 1145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1156 tracedValue->SetString( | 1156 tracedValue->SetString( |
| 1157 "layer_name", WTF::StringUTF8Adaptor(debugName(layer)).asStringPiece()); | 1157 "layer_name", WTF::StringUTF8Adaptor(debugName(layer)).asStringPiece()); |
| 1158 return std::move(tracedValue); | 1158 return std::move(tracedValue); |
| 1159 } | 1159 } |
| 1160 | 1160 |
| 1161 void GraphicsLayer::didUpdateMainThreadScrollingReasons() { | 1161 void GraphicsLayer::didUpdateMainThreadScrollingReasons() { |
| 1162 m_debugInfo.setMainThreadScrollingReasons( | 1162 m_debugInfo.setMainThreadScrollingReasons( |
| 1163 platformLayer()->mainThreadScrollingReasons()); | 1163 platformLayer()->mainThreadScrollingReasons()); |
| 1164 } | 1164 } |
| 1165 | 1165 |
| 1166 void GraphicsLayer::didChangeScrollbarsHidden(bool hidden) { |
| 1167 if (m_scrollableArea) |
| 1168 m_scrollableArea->setScrollbarsHidden(hidden); |
| 1169 } |
| 1170 |
| 1166 PaintController& GraphicsLayer::getPaintController() { | 1171 PaintController& GraphicsLayer::getPaintController() { |
| 1167 RELEASE_ASSERT(drawsContent()); | 1172 RELEASE_ASSERT(drawsContent()); |
| 1168 if (!m_paintController) | 1173 if (!m_paintController) |
| 1169 m_paintController = PaintController::create(); | 1174 m_paintController = PaintController::create(); |
| 1170 return *m_paintController; | 1175 return *m_paintController; |
| 1171 } | 1176 } |
| 1172 | 1177 |
| 1173 void GraphicsLayer::setElementId(const CompositorElementId& id) { | 1178 void GraphicsLayer::setElementId(const CompositorElementId& id) { |
| 1174 if (WebLayer* layer = platformLayer()) | 1179 if (WebLayer* layer = platformLayer()) |
| 1175 layer->setElementId(id); | 1180 layer->setElementId(id); |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1300 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { | 1305 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { |
| 1301 if (!layer) { | 1306 if (!layer) { |
| 1302 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1307 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1303 return; | 1308 return; |
| 1304 } | 1309 } |
| 1305 | 1310 |
| 1306 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1311 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1307 fprintf(stderr, "%s\n", output.utf8().data()); | 1312 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1308 } | 1313 } |
| 1309 #endif | 1314 #endif |
| OLD | NEW |