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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp

Issue 2761693002: Wrapped PassRefPtrs in move where passed to RefPtr constructor. (Closed)
Patch Set: Added move wraps for multiple instances in 1 line. Created 3 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 26 matching lines...) Expand all
37 namespace blink { 37 namespace blink {
38 38
39 DecodingImageGenerator::DecodingImageGenerator( 39 DecodingImageGenerator::DecodingImageGenerator(
40 PassRefPtr<ImageFrameGenerator> frameGenerator, 40 PassRefPtr<ImageFrameGenerator> frameGenerator,
41 const SkImageInfo& info, 41 const SkImageInfo& info,
42 PassRefPtr<SegmentReader> data, 42 PassRefPtr<SegmentReader> data,
43 bool allDataReceived, 43 bool allDataReceived,
44 size_t index, 44 size_t index,
45 uint32_t uniqueID) 45 uint32_t uniqueID)
46 : SkImageGenerator(info, uniqueID), 46 : SkImageGenerator(info, uniqueID),
47 m_frameGenerator(frameGenerator), 47 m_frameGenerator(std::move(frameGenerator)),
48 m_data(data), 48 m_data(data),
49 m_allDataReceived(allDataReceived), 49 m_allDataReceived(allDataReceived),
50 m_frameIndex(index), 50 m_frameIndex(index),
51 m_canYUVDecode(false) {} 51 m_canYUVDecode(false) {}
52 52
53 DecodingImageGenerator::~DecodingImageGenerator() {} 53 DecodingImageGenerator::~DecodingImageGenerator() {}
54 54
55 SkData* DecodingImageGenerator::onRefEncodedData(GrContext* ctx) { 55 SkData* DecodingImageGenerator::onRefEncodedData(GrContext* ctx) {
56 TRACE_EVENT0("blink", "DecodingImageGenerator::refEncodedData"); 56 TRACE_EVENT0("blink", "DecodingImageGenerator::refEncodedData");
57 57
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 ImageFrameGenerator::create(SkISize::Make(size.width(), size.height()), 155 ImageFrameGenerator::create(SkISize::Make(size.width(), size.height()),
156 false, decoder->colorBehavior()); 156 false, decoder->colorBehavior());
157 if (!frame) 157 if (!frame)
158 return nullptr; 158 return nullptr;
159 159
160 return new DecodingImageGenerator(frame, info, segmentReader.release(), true, 160 return new DecodingImageGenerator(frame, info, segmentReader.release(), true,
161 0); 161 0);
162 } 162 }
163 163
164 } // namespace blink 164 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698