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

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

Issue 1887733003: Remove redundant DecodingImageGenerator::m_generationId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sharedBufferInterface6
Patch Set: Remove dependency 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 | « third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 { 280 {
281 const SkISize& decodedSize = m_frameGenerator->getFullSize(); 281 const SkISize& decodedSize = m_frameGenerator->getFullSize();
282 ASSERT(decodedSize.width() > 0); 282 ASSERT(decodedSize.width() > 0);
283 ASSERT(decodedSize.height() > 0); 283 ASSERT(decodedSize.height() > 0);
284 284
285 DecodingImageGenerator* generator = new DecodingImageGenerator(m_frameGenera tor, imageInfoFrom(decodedSize, knownToBeOpaque), index); 285 DecodingImageGenerator* generator = new DecodingImageGenerator(m_frameGenera tor, imageInfoFrom(decodedSize, knownToBeOpaque), index);
286 RefPtr<SkImage> image = adoptRef(SkImage::NewFromGenerator(generator)); // S kImage takes ownership of the generator. 286 RefPtr<SkImage> image = adoptRef(SkImage::NewFromGenerator(generator)); // S kImage takes ownership of the generator.
287 if (!image) 287 if (!image)
288 return nullptr; 288 return nullptr;
289 289
290 generator->setGenerationId(image->uniqueID());
291 generator->setCanYUVDecode(m_canYUVDecode); 290 generator->setCanYUVDecode(m_canYUVDecode);
292 291
293 return image.release(); 292 return image.release();
294 } 293 }
295 294
296 bool DeferredImageDecoder::hotSpot(IntPoint& hotSpot) const 295 bool DeferredImageDecoder::hotSpot(IntPoint& hotSpot) const
297 { 296 {
298 // TODO: Implement. 297 // TODO: Implement.
299 return m_actualDecoder ? m_actualDecoder->hotSpot(hotSpot) : false; 298 return m_actualDecoder ? m_actualDecoder->hotSpot(hotSpot) : false;
300 } 299 }
301 300
302 } // namespace blink 301 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/DecodingImageGenerator.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698