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

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

Issue 191123002: Implement hidpi and pinch-zoom scaling of filter params in cc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove TODO Created 6 years, 9 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/test/render_pass_test_utils.cc ('k') | cc/trees/quad_culler_unittest.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 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 quad->SetNew(sqs.get(), 188 quad->SetNew(sqs.get(),
189 output_rect, 189 output_rect,
190 output_rect, 190 output_rect,
191 id, 191 id,
192 false, // is_replica 192 false, // is_replica
193 0, // mask_resource_id 193 0, // mask_resource_id
194 damage_rect, 194 damage_rect,
195 gfx::Rect(0, 0, 1, 1), // mask_uv_rect 195 gfx::Rect(0, 0, 1, 1), // mask_uv_rect
196 filters, 196 filters,
197 gfx::Vector2dF(),
197 background_filters); 198 background_filters);
198 frame->render_pass_list[0]->shared_quad_state_list.push_back(sqs.Pass()); 199 frame->render_pass_list[0]->shared_quad_state_list.push_back(sqs.Pass());
199 frame->render_pass_list[0]->quad_list.push_back(quad.PassAs<DrawQuad>()); 200 frame->render_pass_list[0]->quad_list.push_back(quad.PassAs<DrawQuad>());
200 } 201 }
201 202
202 static ResourceProvider::ResourceId AppendResourceId( 203 static ResourceProvider::ResourceId AppendResourceId(
203 std::vector<ResourceProvider::ResourceId>* resources_in_last_sent_frame, 204 std::vector<ResourceProvider::ResourceId>* resources_in_last_sent_frame,
204 ResourceProvider::ResourceId resource_id) { 205 ResourceProvider::ResourceId resource_id) {
205 resources_in_last_sent_frame->push_back(resource_id); 206 resources_in_last_sent_frame->push_back(resource_id);
206 return resource_id; 207 return resource_id;
(...skipping 2130 matching lines...) Expand 10 before | Expand all | Expand 10 after
2337 } 2338 }
2338 2339
2339 scoped_refptr<DelegatedRendererLayer> delegated_thief_; 2340 scoped_refptr<DelegatedRendererLayer> delegated_thief_;
2340 }; 2341 };
2341 2342
2342 SINGLE_AND_MULTI_THREAD_TEST_F( 2343 SINGLE_AND_MULTI_THREAD_TEST_F(
2343 LayerTreeHostDelegatedTestRemoveAndChangeResources); 2344 LayerTreeHostDelegatedTestRemoveAndChangeResources);
2344 2345
2345 } // namespace 2346 } // namespace
2346 } // namespace cc 2347 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_utils.cc ('k') | cc/trees/quad_culler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698