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

Side by Side Diff: cc/layers/render_surface_impl.cc

Issue 1556333003: Use the correct variable in the DCHECK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | no next file » | 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 #include "cc/layers/render_surface_impl.h" 5 #include "cc/layers/render_surface_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 MathUtil::ComputeTransform2dScaleComponents(owning_layer_draw_transform, 236 MathUtil::ComputeTransform2dScaleComponents(owning_layer_draw_transform,
237 1.f); 237 1.f);
238 gfx::SizeF unclipped_mask_target_size = gfx::ScaleSize( 238 gfx::SizeF unclipped_mask_target_size = gfx::ScaleSize(
239 gfx::SizeF(owning_layer_->bounds()), owning_layer_draw_scale.x(), 239 gfx::SizeF(owning_layer_->bounds()), owning_layer_draw_scale.x(),
240 owning_layer_draw_scale.y()); 240 owning_layer_draw_scale.y());
241 mask_uv_scale = gfx::Vector2dF( 241 mask_uv_scale = gfx::Vector2dF(
242 content_rect_.width() / unclipped_mask_target_size.width(), 242 content_rect_.width() / unclipped_mask_target_size.width(),
243 content_rect_.height() / unclipped_mask_target_size.height()); 243 content_rect_.height() / unclipped_mask_target_size.height());
244 } 244 }
245 245
246 DCHECK(owning_layer_->draw_properties().target_space_transform.IsScale2d()); 246 DCHECK(owning_layer_draw_transform.IsScale2d());
247 gfx::Vector2dF owning_layer_to_target_scale = 247 gfx::Vector2dF owning_layer_to_target_scale =
248 owning_layer_draw_transform.Scale2d(); 248 owning_layer_draw_transform.Scale2d();
249 249
250 RenderPassDrawQuad* quad = 250 RenderPassDrawQuad* quad =
251 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); 251 render_pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>();
252 quad->SetNew(shared_quad_state, content_rect_, visible_layer_rect, 252 quad->SetNew(shared_quad_state, content_rect_, visible_layer_rect,
253 render_pass_id, mask_resource_id, mask_uv_scale, 253 render_pass_id, mask_resource_id, mask_uv_scale,
254 mask_texture_size, owning_layer_->filters(), 254 mask_texture_size, owning_layer_->filters(),
255 owning_layer_to_target_scale, 255 owning_layer_to_target_scale,
256 owning_layer_->background_filters()); 256 owning_layer_->background_filters());
257 } 257 }
258 258
259 } // namespace cc 259 } // namespace cc
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698