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

Side by Side Diff: Source/core/platform/image-decoders/ImageFrame.cpp

Issue 23464095: WTF::notFound looks too much like a local variable. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2008, 2009 Google, Inc. 3 * Copyright (C) 2008, 2009 Google, Inc.
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 23 matching lines...) Expand all
34 34
35 ImageFrame::ImageFrame() 35 ImageFrame::ImageFrame()
36 : m_bitmap(NativeImageSkia::create()) 36 : m_bitmap(NativeImageSkia::create())
37 , m_allocator(0) 37 , m_allocator(0)
38 , m_hasAlpha(false) 38 , m_hasAlpha(false)
39 , m_status(FrameEmpty) 39 , m_status(FrameEmpty)
40 , m_duration(0) 40 , m_duration(0)
41 , m_disposalMethod(DisposeNotSpecified) 41 , m_disposalMethod(DisposeNotSpecified)
42 , m_alphaBlendSource(BlendAtopPreviousFrame) 42 , m_alphaBlendSource(BlendAtopPreviousFrame)
43 , m_premultiplyAlpha(true) 43 , m_premultiplyAlpha(true)
44 , m_requiredPreviousFrameIndex(notFound) 44 , m_requiredPreviousFrameIndex(kNotFound)
45 #if !ASSERT_DISABLED 45 #if !ASSERT_DISABLED
46 , m_requiredPreviousFrameIndexValid(false) 46 , m_requiredPreviousFrameIndexValid(false)
47 #endif 47 #endif
48 { 48 {
49 } 49 }
50 50
51 ImageFrame& ImageFrame::operator=(const ImageFrame& other) 51 ImageFrame& ImageFrame::operator=(const ImageFrame& other)
52 { 52 {
53 if (this == &other) 53 if (this == &other)
54 return *this; 54 return *this;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void ImageFrame::zeroFillFrameRect(const IntRect& rect) 150 void ImageFrame::zeroFillFrameRect(const IntRect& rect)
151 { 151 {
152 if (rect.isEmpty()) 152 if (rect.isEmpty())
153 return; 153 return;
154 154
155 m_bitmap->bitmap().eraseArea(rect, SkColorSetARGB(0, 0, 0, 0)); 155 m_bitmap->bitmap().eraseArea(rect, SkColorSetARGB(0, 0, 0, 0));
156 setHasAlpha(true); 156 setHasAlpha(true);
157 } 157 }
158 158
159 } // namespace WebCore 159 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/platform/image-decoders/ImageDecoderTest.cpp ('k') | Source/core/platform/image-decoders/gif/GIFImageDecoder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698