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

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

Issue 1962563002: Fix ImageDecoder::frameIsCompleteAtIndex - fully received instead of decoded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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) 2006 Samuel Weinig (sam.weinig@gmail.com) 2 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
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 15 matching lines...) Expand all
26 26
27 #include "platform/graphics/FrameData.h" 27 #include "platform/graphics/FrameData.h"
28 #include "third_party/skia/include/core/SkImage.h" 28 #include "third_party/skia/include/core/SkImage.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 FrameData::FrameData() 32 FrameData::FrameData()
33 : m_orientation(DefaultImageOrientation) 33 : m_orientation(DefaultImageOrientation)
34 , m_duration(0) 34 , m_duration(0)
35 , m_haveMetadata(false) 35 , m_haveMetadata(false)
36 , m_isComplete(false) 36 , m_isFullyReceived(false)
37 , m_hasAlpha(true) 37 , m_hasAlpha(true)
38 , m_frameBytes(0) 38 , m_frameBytes(0)
39 { 39 {
40 } 40 }
41 41
42 FrameData::~FrameData() 42 FrameData::~FrameData()
43 { 43 {
44 clear(true); 44 clear(true);
45 } 45 }
46 46
47 void FrameData::clear(bool clearMetadata) 47 void FrameData::clear(bool clearMetadata)
48 { 48 {
49 if (clearMetadata) 49 if (clearMetadata)
50 m_haveMetadata = false; 50 m_haveMetadata = false;
51 51
52 m_orientation = DefaultImageOrientation; 52 m_orientation = DefaultImageOrientation;
53 m_frameBytes = 0; 53 m_frameBytes = 0;
54 } 54 }
55 55
56 } // namespace blink 56 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698