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

Unified Diff: cc/output/direct_renderer.cc

Issue 2944523002: Improving flat containers interface. (Closed)
Patch Set: Other platforms compilation 2. Created 3 years, 5 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 | « cc/output/direct_renderer.h ('k') | cc/tiles/checker_image_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/direct_renderer.cc
diff --git a/cc/output/direct_renderer.cc b/cc/output/direct_renderer.cc
index 9eb74861cebf6a04ab2e0d0a2fb08228f7cc283e..97a82a615919e42392c2a19708cc990fc6522108 100644
--- a/cc/output/direct_renderer.cc
+++ b/cc/output/direct_renderer.cc
@@ -192,7 +192,7 @@ void DirectRenderer::DecideRenderPassAllocationsForFrame(
render_passes_in_frame[pass->id] = RenderPassTextureSize(pass.get());
}
- std::vector<int> passes_to_delete;
+ std::vector<RenderPassId> passes_to_delete;
for (const auto& pair : render_pass_textures_) {
auto it = render_passes_in_frame.find(pair.first);
if (it == render_passes_in_frame.end()) {
@@ -637,7 +637,8 @@ bool DirectRenderer::UseRenderPass(const RenderPass* render_pass) {
return false;
}
-bool DirectRenderer::HasAllocatedResourcesForTesting(int render_pass_id) const {
+bool DirectRenderer::HasAllocatedResourcesForTesting(
+ RenderPassId render_pass_id) const {
auto iter = render_pass_textures_.find(render_pass_id);
return iter != render_pass_textures_.end() && iter->second->id();
}
« no previous file with comments | « cc/output/direct_renderer.h ('k') | cc/tiles/checker_image_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698