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

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

Issue 2502413004: WTF/std normalization: replace WTF::Vector::last with ::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 // Because we are changing the texture binding without going through skia, 289 // Because we are changing the texture binding without going through skia,
290 // we must dirty the context. 290 // we must dirty the context.
291 grContext->resetContext(kTextureBinding_GrGLBackendState); 291 grContext->resetContext(kTextureBinding_GrGLBackendState);
292 292
293 return true; 293 return true;
294 } 294 }
295 295
296 RefPtr<Canvas2DLayerBridge::ImageInfo> 296 RefPtr<Canvas2DLayerBridge::ImageInfo>
297 Canvas2DLayerBridge::createIOSurfaceBackedTexture() { 297 Canvas2DLayerBridge::createIOSurfaceBackedTexture() {
298 if (!m_imageInfoCache.isEmpty()) { 298 if (!m_imageInfoCache.isEmpty()) {
299 RefPtr<Canvas2DLayerBridge::ImageInfo> info = m_imageInfoCache.last(); 299 RefPtr<Canvas2DLayerBridge::ImageInfo> info = m_imageInfoCache.back();
300 m_imageInfoCache.pop_back(); 300 m_imageInfoCache.pop_back();
301 return info; 301 return info;
302 } 302 }
303 303
304 gpu::gles2::GLES2Interface* gl = contextGL(); 304 gpu::gles2::GLES2Interface* gl = contextGL();
305 if (!gl) 305 if (!gl)
306 return nullptr; 306 return nullptr;
307 307
308 gpu::GpuMemoryBufferManager* gpuMemoryBufferManager = 308 gpu::GpuMemoryBufferManager* gpuMemoryBufferManager =
309 Platform::current()->getGpuMemoryBufferManager(); 309 Platform::current()->getGpuMemoryBufferManager();
(...skipping 827 matching lines...) Expand 10 before | Expand all | Expand 10 after
1137 default; 1137 default;
1138 1138
1139 void Canvas2DLayerBridge::Logger::reportHibernationEvent( 1139 void Canvas2DLayerBridge::Logger::reportHibernationEvent(
1140 HibernationEvent event) { 1140 HibernationEvent event) {
1141 DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram, 1141 DEFINE_STATIC_LOCAL(EnumerationHistogram, hibernationHistogram,
1142 ("Canvas.HibernationEvents", HibernationEventCount)); 1142 ("Canvas.HibernationEvents", HibernationEventCount));
1143 hibernationHistogram.count(event); 1143 hibernationHistogram.count(event);
1144 } 1144 }
1145 1145
1146 } // namespace blink 1146 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698