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

Side by Side Diff: cc/output/filter_operation.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 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/output/filter_operation.h ('k') | cc/output/filter_operations.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 <stddef.h> 5 #include <stddef.h>
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/trace_event/trace_event_argument.h" 9 #include "base/trace_event/trace_event_argument.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 can_filter_image_gpu = image_filter_->canFilterImageGPU(); 296 can_filter_image_gpu = image_filter_->canFilterImageGPU();
297 } 297 }
298 value->SetBoolean("is_null", !image_filter_); 298 value->SetBoolean("is_null", !image_filter_);
299 value->SetInteger("count_inputs", count_inputs); 299 value->SetInteger("count_inputs", count_inputs);
300 value->SetBoolean("can_filter_image_gpu", can_filter_image_gpu); 300 value->SetBoolean("can_filter_image_gpu", can_filter_image_gpu);
301 break; 301 break;
302 } 302 }
303 case FilterOperation::ALPHA_THRESHOLD: { 303 case FilterOperation::ALPHA_THRESHOLD: {
304 value->SetDouble("inner_threshold", amount_); 304 value->SetDouble("inner_threshold", amount_);
305 value->SetDouble("outer_threshold", outer_threshold_); 305 value->SetDouble("outer_threshold", outer_threshold_);
306 scoped_ptr<base::ListValue> region_value(new base::ListValue()); 306 std::unique_ptr<base::ListValue> region_value(new base::ListValue());
307 value->BeginArray("region"); 307 value->BeginArray("region");
308 for (SkRegion::Iterator it(region_); !it.done(); it.next()) { 308 for (SkRegion::Iterator it(region_); !it.done(); it.next()) {
309 value->AppendInteger(it.rect().x()); 309 value->AppendInteger(it.rect().x());
310 value->AppendInteger(it.rect().y()); 310 value->AppendInteger(it.rect().y());
311 value->AppendInteger(it.rect().width()); 311 value->AppendInteger(it.rect().width());
312 value->AppendInteger(it.rect().height()); 312 value->AppendInteger(it.rect().height());
313 } 313 }
314 value->EndArray(); 314 value->EndArray();
315 } 315 }
316 break; 316 break;
317 } 317 }
318 } 318 }
319 319
320 } // namespace cc 320 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/filter_operation.h ('k') | cc/output/filter_operations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698