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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 years, 3 months 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 return true; 379 return true;
380 } 380 }
381 381
382 void GraphicsLayer::notifyFirstPaintToClient() 382 void GraphicsLayer::notifyFirstPaintToClient()
383 { 383 {
384 bool isFirstPaint = false; 384 bool isFirstPaint = false;
385 if (!m_painted) { 385 if (!m_painted) {
386 DisplayItemList& itemList = m_paintController->newDisplayItemList(); 386 DisplayItemList& itemList = m_paintController->newDisplayItemList();
387 for (DisplayItem& item : itemList) { 387 for (DisplayItem& item : itemList) {
388 DisplayItem::Type type = item.getType(); 388 DisplayItem::Type type = item.getType();
389 if (DisplayItem::isDrawingType(type) && type != DisplayItem::Documen tBackground && static_cast<const DrawingDisplayItem&>(item).picture()) { 389 if (DisplayItem::isDrawingType(type) && type != DisplayItem::kDocume ntBackground && static_cast<const DrawingDisplayItem&>(item).picture()) {
390 m_painted = true; 390 m_painted = true;
391 isFirstPaint = true; 391 isFirstPaint = true;
392 break; 392 break;
393 } 393 }
394 } 394 }
395 } 395 }
396 m_client->notifyPaint(isFirstPaint, m_paintController->textPainted(), m_pain tController->imagePainted()); 396 m_client->notifyPaint(isFirstPaint, m_paintController->textPainted(), m_pain tController->imagePainted());
397 } 397 }
398 398
399 void GraphicsLayer::updateChildList() 399 void GraphicsLayer::updateChildList()
(...skipping 951 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 { 1351 {
1352 if (!layer) { 1352 if (!layer) {
1353 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n"); 1353 fprintf(stderr, "Cannot showGraphicsLayerTree for (nil).\n");
1354 return; 1354 return;
1355 } 1355 }
1356 1356
1357 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo); 1357 String output = layer->layerTreeAsText(blink::LayerTreeIncludesDebugInfo);
1358 fprintf(stderr, "%s\n", output.utf8().data()); 1358 fprintf(stderr, "%s\n", output.utf8().data());
1359 } 1359 }
1360 #endif 1360 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698