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

Side by Side Diff: cc/trees/layer_tree_host_unittest_delegated.cc

Issue 394193003: Implement HiDPI and pinch-zoom scaling of filter params (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra headers; unneeded code in tests Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_filters.cc ('k') | content/common/cc_messages.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 188
189 quad->SetNew(sqs, 189 quad->SetNew(sqs,
190 output_rect, 190 output_rect,
191 output_rect, 191 output_rect,
192 id, 192 id,
193 false, // is_replica 193 false, // is_replica
194 0, // mask_resource_id 194 0, // mask_resource_id
195 damage_rect, 195 damage_rect,
196 gfx::Rect(0, 0, 1, 1), // mask_uv_rect 196 gfx::Rect(0, 0, 1, 1), // mask_uv_rect
197 filters, 197 filters,
198 gfx::Vector2dF(),
198 background_filters); 199 background_filters);
199 } 200 }
200 201
201 static ResourceProvider::ResourceId AppendResourceId( 202 static ResourceProvider::ResourceId AppendResourceId(
202 std::vector<ResourceProvider::ResourceId>* resources_in_last_sent_frame, 203 std::vector<ResourceProvider::ResourceId>* resources_in_last_sent_frame,
203 ResourceProvider::ResourceId resource_id) { 204 ResourceProvider::ResourceId resource_id) {
204 resources_in_last_sent_frame->push_back(resource_id); 205 resources_in_last_sent_frame->push_back(resource_id);
205 return resource_id; 206 return resource_id;
206 } 207 }
207 208
(...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after
2193 } 2194 }
2194 2195
2195 scoped_refptr<DelegatedRendererLayer> delegated_thief_; 2196 scoped_refptr<DelegatedRendererLayer> delegated_thief_;
2196 }; 2197 };
2197 2198
2198 SINGLE_AND_MULTI_THREAD_TEST_F( 2199 SINGLE_AND_MULTI_THREAD_TEST_F(
2199 LayerTreeHostDelegatedTestRemoveAndChangeResources); 2200 LayerTreeHostDelegatedTestRemoveAndChangeResources);
2200 2201
2201 } // namespace 2202 } // namespace
2202 } // namespace cc 2203 } // namespace cc
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_pixeltest_filters.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698