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

Side by Side Diff: cc/layers/delegated_renderer_layer_impl.h

Issue 1158433010: Reland: 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 | « no previous file | cc/layers/delegated_renderer_layer_impl.cc » ('j') | cc/output/gl_renderer.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 6 #define CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
7 7
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 void AppendRenderPassQuads(RenderPass* render_pass, 80 void AppendRenderPassQuads(RenderPass* render_pass,
81 const RenderPass* delegated_render_pass, 81 const RenderPass* delegated_render_pass,
82 const gfx::Size& frame_size) const; 82 const gfx::Size& frame_size) const;
83 83
84 // LayerImpl overrides. 84 // LayerImpl overrides.
85 const char* LayerTypeAsString() const override; 85 const char* LayerTypeAsString() const override;
86 86
87 bool have_render_passes_to_push_; 87 bool have_render_passes_to_push_;
88 float inverse_device_scale_factor_; 88 float inverse_device_scale_factor_;
89 RenderPassList render_passes_in_draw_order_; 89 RenderPassList render_passes_in_draw_order_;
90 base::hash_map<RenderPassId, int> render_passes_index_by_id_; 90
91 using RenderPassToIndexMap = base::hash_map<RenderPassId, size_t>;
92 RenderPassToIndexMap render_passes_index_by_id_;
91 ResourceProvider::ResourceIdSet resources_; 93 ResourceProvider::ResourceIdSet resources_;
92 94
93 int child_id_; 95 int child_id_;
94 bool own_child_id_; 96 bool own_child_id_;
95 97
96 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl); 98 DISALLOW_COPY_AND_ASSIGN(DelegatedRendererLayerImpl);
97 }; 99 };
98 100
99 } // namespace cc 101 } // namespace cc
100 102
101 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_ 103 #endif // CC_LAYERS_DELEGATED_RENDERER_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/delegated_renderer_layer_impl.cc » ('j') | cc/output/gl_renderer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698