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

Side by Side Diff: cc/surfaces/surface_factory.cc

Issue 1587283002: Switch cc to std::unordered_*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unordered-map
Patch Set: Fix MSVC build issue Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/surface_factory.h ('k') | cc/surfaces/surface_id.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/surfaces/surface_factory.h" 5 #include "cc/surfaces/surface_factory.h"
6 6
7 #include <utility>
8
7 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
8 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
9 #include "cc/output/copy_output_request.h" 11 #include "cc/output/copy_output_request.h"
10 #include "cc/surfaces/surface.h" 12 #include "cc/surfaces/surface.h"
11 #include "cc/surfaces/surface_factory_client.h" 13 #include "cc/surfaces/surface_factory_client.h"
12 #include "cc/surfaces/surface_manager.h" 14 #include "cc/surfaces/surface_manager.h"
13 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
14 16
15 namespace cc { 17 namespace cc {
16 SurfaceFactory::SurfaceFactory(SurfaceManager* manager, 18 SurfaceFactory::SurfaceFactory(SurfaceManager* manager,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 98
97 void SurfaceFactory::RefResources(const TransferableResourceArray& resources) { 99 void SurfaceFactory::RefResources(const TransferableResourceArray& resources) {
98 holder_.RefResources(resources); 100 holder_.RefResources(resources);
99 } 101 }
100 102
101 void SurfaceFactory::UnrefResources(const ReturnedResourceArray& resources) { 103 void SurfaceFactory::UnrefResources(const ReturnedResourceArray& resources) {
102 holder_.UnrefResources(resources); 104 holder_.UnrefResources(resources);
103 } 105 }
104 106
105 } // namespace cc 107 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/surface_factory.h ('k') | cc/surfaces/surface_id.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698