Chromium Code Reviews| 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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 394 } | 394 } |
| 395 } | 395 } |
| 396 if (!m_textPainted && m_paintController->textPainted()) { | 396 if (!m_textPainted && m_paintController->textPainted()) { |
| 397 m_textPainted = true; | 397 m_textPainted = true; |
| 398 m_client->notifyFirstTextPaint(); | 398 m_client->notifyFirstTextPaint(); |
| 399 } | 399 } |
| 400 if (!m_imagePainted && m_paintController->imagePainted()) { | 400 if (!m_imagePainted && m_paintController->imagePainted()) { |
| 401 m_imagePainted = true; | 401 m_imagePainted = true; |
| 402 m_client->notifyFirstImagePaint(); | 402 m_client->notifyFirstImagePaint(); |
| 403 } | 403 } |
| 404 m_client->notifyPaint(); | |
|
kouhei (in TOK)
2016/07/28 03:45:04
Should we refactor this so that we pass notifyPain
Kunihiko Sakamoto
2016/08/01 08:52:07
Done.
| |
| 404 } | 405 } |
| 405 | 406 |
| 406 void GraphicsLayer::updateChildList() | 407 void GraphicsLayer::updateChildList() |
| 407 { | 408 { |
| 408 WebLayer* childHost = m_layer->layer(); | 409 WebLayer* childHost = m_layer->layer(); |
| 409 childHost->removeAllChildren(); | 410 childHost->removeAllChildren(); |
| 410 | 411 |
| 411 clearContentsLayerIfUnregistered(); | 412 clearContentsLayerIfUnregistered(); |
| 412 | 413 |
| 413 if (m_contentsLayer) { | 414 if (m_contentsLayer) { |
| (...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1358 { | 1359 { |
| 1359 if (!layer) { | 1360 if (!layer) { |
| 1360 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); | 1361 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); |
| 1361 return; | 1362 return; |
| 1362 } | 1363 } |
| 1363 | 1364 |
| 1364 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); | 1365 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); |
| 1365 fprintf(stderr, "%s\n", output.utf8().data()); | 1366 fprintf(stderr, "%s\n", output.utf8().data()); |
| 1366 } | 1367 } |
| 1367 #endif | 1368 #endif |
| OLD | NEW |