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

Unified Diff: cc/surfaces/surface_aggregator.h

Issue 2150633002: cc: Pass SurfaceId by const ref in more places (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/surfaces/surface.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/surface_aggregator.h
diff --git a/cc/surfaces/surface_aggregator.h b/cc/surfaces/surface_aggregator.h
index 99e93308f42622403f9e1da590829129fbc46472..a06ba877d0d1990b3f965ff0aa58f16bfe0a1de5 100644
--- a/cc/surfaces/surface_aggregator.h
+++ b/cc/surfaces/surface_aggregator.h
@@ -36,12 +36,12 @@ class CC_SURFACES_EXPORT SurfaceAggregator {
bool aggregate_only_damaged);
~SurfaceAggregator();
- CompositorFrame Aggregate(SurfaceId surface_id);
- void ReleaseResources(SurfaceId surface_id);
+ CompositorFrame Aggregate(const SurfaceId& surface_id);
+ void ReleaseResources(const SurfaceId& surface_id);
SurfaceIndexMap& previous_contained_surfaces() {
return previous_contained_surfaces_;
}
- void SetFullDamageForSurface(SurfaceId surface_id);
+ void SetFullDamageForSurface(const SurfaceId& surface_id);
void set_output_is_secure(bool secure) { output_is_secure_ = secure; }
private:
@@ -67,7 +67,7 @@ class CC_SURFACES_EXPORT SurfaceAggregator {
const gfx::Transform& target_transform);
RenderPassId RemapPassId(RenderPassId surface_local_pass_id,
- SurfaceId surface_id);
+ const SurfaceId& surface_id);
void HandleSurfaceQuad(const SurfaceDrawQuad* surface_quad,
const gfx::Transform& target_transform,
@@ -84,8 +84,8 @@ class CC_SURFACES_EXPORT SurfaceAggregator {
const gfx::Transform& target_transform,
const ClipData& clip_rect,
RenderPass* dest_pass,
- SurfaceId surface_id);
- gfx::Rect PrewalkTree(SurfaceId surface_id,
+ const SurfaceId& surface_id);
+ gfx::Rect PrewalkTree(const SurfaceId& surface_id,
bool in_moved_pixel_pass,
RenderPassId parent_pass,
PrewalkResult* result);
« no previous file with comments | « cc/surfaces/surface.cc ('k') | cc/surfaces/surface_aggregator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698