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

Side by Side Diff: cc/test/fake_mask_layer_impl.cc

Issue 2828353003: Determine mask UVs based on texture size (Closed)
Patch Set: Add tolerance to filter_effects.html Created 3 years, 8 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/test/fake_mask_layer_impl.h ('k') | cc/trees/effect_node.h » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/test/fake_mask_layer_impl.h" 5 #include "cc/test/fake_mask_layer_impl.h"
6 6
7 #include "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
(...skipping 12 matching lines...) Expand all
23 int id, 23 int id,
24 scoped_refptr<RasterSource> raster_source, 24 scoped_refptr<RasterSource> raster_source,
25 Layer::LayerMaskType mask_type) { 25 Layer::LayerMaskType mask_type) {
26 return base::WrapUnique( 26 return base::WrapUnique(
27 new FakeMaskLayerImpl(tree_impl, id, raster_source, mask_type)); 27 new FakeMaskLayerImpl(tree_impl, id, raster_source, mask_type));
28 } 28 }
29 29
30 void FakeMaskLayerImpl::GetContentsResourceId(ResourceId* resource_id, 30 void FakeMaskLayerImpl::GetContentsResourceId(ResourceId* resource_id,
31 gfx::Size* resource_size) const { 31 gfx::Size* resource_size) const {
32 *resource_id = 0; 32 *resource_id = 0;
33 *resource_size = resource_size_;
33 } 34 }
34 35
35 } // namespace cc 36 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_mask_layer_impl.h ('k') | cc/trees/effect_node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698