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

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

Issue 2459003003: WTF/std normalization: replace WTF::Vector::removeLast with ::pop_back (Closed)
Patch Set: rebase Created 4 years, 1 month 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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 // we must dirty the context. 289 // we must dirty the context.
290 grContext->resetContext(kTextureBinding_GrGLBackendState); 290 grContext->resetContext(kTextureBinding_GrGLBackendState);
291 291
292 return true; 292 return true;
293 } 293 }
294 294
295 RefPtr<Canvas2DLayerBridge::ImageInfo> 295 RefPtr<Canvas2DLayerBridge::ImageInfo>
296 Canvas2DLayerBridge::createIOSurfaceBackedTexture() { 296 Canvas2DLayerBridge::createIOSurfaceBackedTexture() {
297 if (!m_imageInfoCache.isEmpty()) { 297 if (!m_imageInfoCache.isEmpty()) {
298 RefPtr<Canvas2DLayerBridge::ImageInfo> info = m_imageInfoCache.last(); 298 RefPtr<Canvas2DLayerBridge::ImageInfo> info = m_imageInfoCache.last();
299 m_imageInfoCache.removeLast(); 299 m_imageInfoCache.pop_back();
300 return info; 300 return info;
301 } 301 }
302 302
303 gpu::gles2::GLES2Interface* gl = contextGL(); 303 gpu::gles2::GLES2Interface* gl = contextGL();
304 if (!gl) 304 if (!gl)
305 return nullptr; 305 return nullptr;
306 306
307 gpu::GpuMemoryBufferManager* gpuMemoryBufferManager = 307 gpu::GpuMemoryBufferManager* gpuMemoryBufferManager =
308 Platform::current()->getGpuMemoryBufferManager(); 308 Platform::current()->getGpuMemoryBufferManager();
309 if (!gpuMemoryBufferManager) 309 if (!gpuMemoryBufferManager)
(...skipping 826 matching lines...) Expand 10 before | Expand all | Expand 10 after
1136 default; 1136 default;
1137 1137
1138 void Canvas2DLayerBridge::Logger::reportHibernationEvent( 1138 void Canvas2DLayerBridge::Logger::reportHibernationEvent(
1139 HibernationEvent event) { 1139 HibernationEvent event) {
1140 DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram, 1140 DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram,
1141 ("Canvas.HibernationEvents", HibernationEventCount)); 1141 ("Canvas.HibernationEvents", HibernationEventCount));
1142 hibernationHistogram.count(event); 1142 hibernationHistogram.count(event);
1143 } 1143 }
1144 1144
1145 } // namespace blink 1145 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/ContextMenu.h ('k') | third_party/WebKit/Source/platform/graphics/ContiguousContainer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698