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 1135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1146 m_debugInfo.setMainThreadScrollingReasons( | 1146 m_debugInfo.setMainThreadScrollingReasons( |
1147 platformLayer()->mainThreadScrollingReasons()); | 1147 platformLayer()->mainThreadScrollingReasons()); |
1148 } | 1148 } |
1149 | 1149 |
1150 void GraphicsLayer::didChangeScrollbarsHidden(bool hidden) { | 1150 void GraphicsLayer::didChangeScrollbarsHidden(bool hidden) { |
1151 if (m_scrollableArea) | 1151 if (m_scrollableArea) |
1152 m_scrollableArea->setScrollbarsHidden(hidden); | 1152 m_scrollableArea->setScrollbarsHidden(hidden); |
1153 } | 1153 } |
1154 | 1154 |
1155 PaintController& GraphicsLayer::getPaintController() { | 1155 PaintController& GraphicsLayer::getPaintController() { |
1156 RELEASE_ASSERT(drawsContent()); | 1156 CHECK(drawsContent()); |
1157 if (!m_paintController) | 1157 if (!m_paintController) |
1158 m_paintController = PaintController::create(); | 1158 m_paintController = PaintController::create(); |
1159 return *m_paintController; | 1159 return *m_paintController; |
1160 } | 1160 } |
1161 | 1161 |
1162 void GraphicsLayer::setElementId(const CompositorElementId& id) { | 1162 void GraphicsLayer::setElementId(const CompositorElementId& id) { |
1163 if (WebLayer* layer = platformLayer()) | 1163 if (WebLayer* layer = platformLayer()) |
1164 layer->setElementId(id); | 1164 layer->setElementId(id); |
1165 } | 1165 } |
1166 | 1166 |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { | 1290 void showGraphicsLayerTree(const blink::GraphicsLayer* layer) { |
1291 if (!layer) { | 1291 if (!layer) { |
1292 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; | 1292 LOG(INFO) << "Cannot showGraphicsLayerTree for (nil)."; |
1293 return; | 1293 return; |
1294 } | 1294 } |
1295 | 1295 |
1296 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1296 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
1297 LOG(INFO) << output.utf8().data(); | 1297 LOG(INFO) << output.utf8().data(); |
1298 } | 1298 } |
1299 #endif | 1299 #endif |
OLD | NEW |