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

Side by Side Diff: cc/quads/render_pass.h

Issue 1155553006: Revert of cc: Fix size_t to int truncations in layers/ output/ playback/ quads/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/playback/display_item_list.cc ('k') | cc/quads/render_pass.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_QUADS_RENDER_PASS_H_ 5 #ifndef CC_QUADS_RENDER_PASS_H_
6 #define CC_QUADS_RENDER_PASS_H_ 6 #define CC_QUADS_RENDER_PASS_H_
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 129
130 DISALLOW_COPY_AND_ASSIGN(RenderPass); 130 DISALLOW_COPY_AND_ASSIGN(RenderPass);
131 }; 131 };
132 132
133 } // namespace cc 133 } // namespace cc
134 134
135 namespace BASE_HASH_NAMESPACE { 135 namespace BASE_HASH_NAMESPACE {
136 template <> 136 template <>
137 struct hash<cc::RenderPassId> { 137 struct hash<cc::RenderPassId> {
138 size_t operator()(cc::RenderPassId key) const { 138 size_t operator()(cc::RenderPassId key) const {
139 return base::HashPair(key.layer_id, static_cast<int>(key.index)); 139 return base::HashPair(key.layer_id, key.index);
140 } 140 }
141 }; 141 };
142 } // namespace BASE_HASH_NAMESPACE 142 } // namespace BASE_HASH_NAMESPACE
143 143
144 namespace cc { 144 namespace cc {
145 typedef ScopedPtrVector<RenderPass> RenderPassList; 145 typedef ScopedPtrVector<RenderPass> RenderPassList;
146 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap; 146 typedef base::hash_map<RenderPassId, RenderPass*> RenderPassIdHashMap;
147 } // namespace cc 147 } // namespace cc
148 148
149 #endif // CC_QUADS_RENDER_PASS_H_ 149 #endif // CC_QUADS_RENDER_PASS_H_
OLDNEW
« no previous file with comments | « cc/playback/display_item_list.cc ('k') | cc/quads/render_pass.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698