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

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

Issue 659683002: Include mask texture size in RenderPassDrawQuad (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@update_mask_draw_quad_test
Patch Set: No ToEnclosedRect Created 6 years, 2 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/quads/render_pass_unittest.cc ('k') | cc/surfaces/surface_aggregator_test_helpers.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 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_aggregator.h" 5 #include "cc/surfaces/surface_aggregator.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 SharedQuadState* shared_quad_state = 231 SharedQuadState* shared_quad_state =
232 dest_pass->CreateAndAppendSharedQuadState(); 232 dest_pass->CreateAndAppendSharedQuadState();
233 shared_quad_state->CopyFrom(surface_quad->shared_quad_state); 233 shared_quad_state->CopyFrom(surface_quad->shared_quad_state);
234 RenderPassDrawQuad* quad = 234 RenderPassDrawQuad* quad =
235 dest_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); 235 dest_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>();
236 quad->SetNew(shared_quad_state, 236 quad->SetNew(shared_quad_state,
237 surface_quad->rect, 237 surface_quad->rect,
238 surface_quad->visible_rect, 238 surface_quad->visible_rect,
239 remapped_pass_id, 239 remapped_pass_id,
240 0, 240 0,
241 gfx::RectF(), 241 gfx::Vector2dF(),
242 gfx::Size(),
242 FilterOperations(), 243 FilterOperations(),
243 gfx::Vector2dF(), 244 gfx::Vector2dF(),
244 FilterOperations()); 245 FilterOperations());
245 } 246 }
246 dest_pass->damage_rect = 247 dest_pass->damage_rect =
247 gfx::UnionRects(dest_pass->damage_rect, 248 gfx::UnionRects(dest_pass->damage_rect,
248 MathUtil::MapEnclosingClippedRect( 249 MathUtil::MapEnclosingClippedRect(
249 surface_quad->quadTransform(), 250 surface_quad->quadTransform(),
250 DamageRectForSurface(surface, last_pass))); 251 DamageRectForSurface(surface, last_pass)));
251 252
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 surface->TakeLatencyInfo(&frame->metadata.latency_info); 392 surface->TakeLatencyInfo(&frame->metadata.latency_info);
392 } 393 }
393 394
394 // TODO(jamesr): Aggregate all resource references into the returned frame's 395 // TODO(jamesr): Aggregate all resource references into the returned frame's
395 // resource list. 396 // resource list.
396 397
397 return frame.Pass(); 398 return frame.Pass();
398 } 399 }
399 400
400 } // namespace cc 401 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/render_pass_unittest.cc ('k') | cc/surfaces/surface_aggregator_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698