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

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

Issue 2746763009: Migrate WTF::Deque::prepend() to ::push_front() (Closed)
Patch Set: Created 3 years, 9 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 for (const auto& it : m_imageInfoCache) { 362 for (const auto& it : m_imageInfoCache) {
363 deleteCHROMIUMImage(it); 363 deleteCHROMIUMImage(it);
364 } 364 }
365 m_imageInfoCache.clear(); 365 m_imageInfoCache.clear();
366 } 366 }
367 #endif // USE_IOSURFACE_FOR_2D_CANVAS 367 #endif // USE_IOSURFACE_FOR_2D_CANVAS
368 368
369 void Canvas2DLayerBridge::createMailboxInfo() { 369 void Canvas2DLayerBridge::createMailboxInfo() {
370 MailboxInfo tmp; 370 MailboxInfo tmp;
371 tmp.m_parentLayerBridge = this; 371 tmp.m_parentLayerBridge = this;
372 m_mailboxes.prepend(tmp); 372 m_mailboxes.push_front(tmp);
373 } 373 }
374 374
375 bool Canvas2DLayerBridge::prepareMailboxFromImage( 375 bool Canvas2DLayerBridge::prepareMailboxFromImage(
376 sk_sp<SkImage> image, 376 sk_sp<SkImage> image,
377 cc::TextureMailbox* outMailbox) { 377 cc::TextureMailbox* outMailbox) {
378 createMailboxInfo(); 378 createMailboxInfo();
379 MailboxInfo& mailboxInfo = m_mailboxes.front(); 379 MailboxInfo& mailboxInfo = m_mailboxes.front();
380 380
381 GrContext* grContext = m_contextProvider->grContext(); 381 GrContext* grContext = m_contextProvider->grContext();
382 if (!grContext) { 382 if (!grContext) {
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
1116 default; 1116 default;
1117 1117
1118 void Canvas2DLayerBridge::Logger::reportHibernationEvent( 1118 void Canvas2DLayerBridge::Logger::reportHibernationEvent(
1119 HibernationEvent event) { 1119 HibernationEvent event) {
1120 DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram, 1120 DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram,
1121 ("Canvas.HibernationEvents", HibernationEventCount)); 1121 ("Canvas.HibernationEvents", HibernationEventCount));
1122 hibernationHistogram.count(event); 1122 hibernationHistogram.count(event);
1123 } 1123 }
1124 1124
1125 } // namespace blink 1125 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698