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

Side by Side Diff: Source/core/platform/graphics/FrameData.cpp

Issue 25976002: Remove ImageSource::bytesDecodedToDetermineProperties() and fallout (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: For landing again, rebased Created 7 years, 2 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 { 46 {
47 clear(true); 47 clear(true);
48 } 48 }
49 49
50 bool FrameData::clear(bool clearMetadata) 50 bool FrameData::clear(bool clearMetadata)
51 { 51 {
52 if (clearMetadata) 52 if (clearMetadata)
53 m_haveMetadata = false; 53 m_haveMetadata = false;
54 54
55 m_orientation = DefaultImageOrientation; 55 m_orientation = DefaultImageOrientation;
56 m_frameBytes = 0;
56 57
57 if (m_frame) { 58 if (m_frame) {
58 m_frame.clear(); 59 m_frame.clear();
59 60
60 return true; 61 return true;
61 } 62 }
62 return false; 63 return false;
63 } 64 }
64 65
65 } // namespace WebCore 66 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/BitmapImageTest.cpp ('k') | Source/core/platform/graphics/GeneratedImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698