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

Unified Diff: ui/accelerated_widget_mac/io_surface_context.mm

Issue 2721553004: Remove auto raw pointer deduction from non-linux specific code. (Closed)
Patch Set: rebase Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/accelerated_widget_mac/ca_renderer_layer_tree.mm ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/accelerated_widget_mac/io_surface_context.mm
diff --git a/ui/accelerated_widget_mac/io_surface_context.mm b/ui/accelerated_widget_mac/io_surface_context.mm
index 382403ef994f147e4a0d76e687b50c77ed3b26bf..3184013065687b4ac70d461fc0dcd439f22ddbad 100644
--- a/ui/accelerated_widget_mac/io_surface_context.mm
+++ b/ui/accelerated_widget_mac/io_surface_context.mm
@@ -22,7 +22,7 @@ namespace {
using TypeMap = std::map<IOSurfaceContext::Type, IOSurfaceContext*>;
TypeMap* GetTypeMap() {
- static auto type_map = new TypeMap();
+ static auto* type_map = new TypeMap();
return type_map;
}
@@ -34,7 +34,7 @@ IOSurfaceContext::Get(Type type) {
TRACE_EVENT0("browser", "IOSurfaceContext::Get");
// Return the context for this type, if it exists.
- auto type_map = GetTypeMap();
+ auto* type_map = GetTypeMap();
TypeMap::iterator found = type_map->find(type);
if (found != type_map->end()) {
DCHECK(!found->second->poisoned_);
@@ -80,7 +80,7 @@ void IOSurfaceContext::PoisonContextAndSharegroup() {
if (poisoned_)
return;
- auto type_map = GetTypeMap();
+ auto* type_map = GetTypeMap();
for (TypeMap::iterator it = type_map->begin(); it != type_map->end(); ++it) {
it->second->poisoned_ = true;
}
@@ -90,7 +90,7 @@ void IOSurfaceContext::PoisonContextAndSharegroup() {
IOSurfaceContext::IOSurfaceContext(
Type type, base::ScopedTypeRef<CGLContextObj> cgl_context)
: type_(type), cgl_context_(cgl_context), poisoned_(false) {
- auto type_map = GetTypeMap();
+ auto* type_map = GetTypeMap();
DCHECK(type_map->find(type_) == type_map->end());
type_map->insert(std::make_pair(type_, this));
@@ -100,7 +100,7 @@ IOSurfaceContext::IOSurfaceContext(
IOSurfaceContext::~IOSurfaceContext() {
ui::GpuSwitchingManager::GetInstance()->RemoveObserver(this);
- auto type_map = GetTypeMap();
+ auto* type_map = GetTypeMap();
if (!poisoned_) {
DCHECK(type_map->find(type_) != type_map->end());
DCHECK(type_map->find(type_)->second == this);
« no previous file with comments | « ui/accelerated_widget_mac/ca_renderer_layer_tree.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698