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

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

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . Created 4 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) 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 m_bitmap = other.m_bitmap; 49 m_bitmap = other.m_bitmap;
50 // Keep the pixels locked since we will be writing directly into the 50 // Keep the pixels locked since we will be writing directly into the
51 // bitmap throughout this object's lifetime. 51 // bitmap throughout this object's lifetime.
52 m_bitmap.lockPixels(); 52 m_bitmap.lockPixels();
53 // Be sure to assign this before calling setStatus(), since setStatus() may 53 // Be sure to assign this before calling setStatus(), since setStatus() may
54 // call notifyBitmapIfPixelsChanged(). 54 // call notifyBitmapIfPixelsChanged().
55 m_pixelsChanged = other.m_pixelsChanged; 55 m_pixelsChanged = other.m_pixelsChanged;
56 setMemoryAllocator(other.allocator()); 56 setMemoryAllocator(other.allocator());
57 setOriginalFrameRect(other.originalFrameRect()); 57 setOriginalFrameRect(other.originalFrameRect());
58 setStatus(other.status()); 58 setStatus(other.getStatus());
59 setDuration(other.duration()); 59 setDuration(other.duration());
60 setDisposalMethod(other.disposalMethod()); 60 setDisposalMethod(other.getDisposalMethod());
61 setAlphaBlendSource(other.alphaBlendSource()); 61 setAlphaBlendSource(other.getAlphaBlendSource());
62 setPremultiplyAlpha(other.premultiplyAlpha()); 62 setPremultiplyAlpha(other.premultiplyAlpha());
63 // Be sure that this is called after we've called setStatus(), since we 63 // Be sure that this is called after we've called setStatus(), since we
64 // look at our status to know what to do with the alpha value. 64 // look at our status to know what to do with the alpha value.
65 setHasAlpha(other.hasAlpha()); 65 setHasAlpha(other.hasAlpha());
66 setRequiredPreviousFrameIndex(other.requiredPreviousFrameIndex()); 66 setRequiredPreviousFrameIndex(other.requiredPreviousFrameIndex());
67 return *this; 67 return *this;
68 } 68 }
69 69
70 void ImageFrame::clearPixelData() 70 void ImageFrame::clearPixelData()
71 { 71 {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 void ImageFrame::zeroFillFrameRect(const IntRect& rect) 143 void ImageFrame::zeroFillFrameRect(const IntRect& rect)
144 { 144 {
145 if (rect.isEmpty()) 145 if (rect.isEmpty())
146 return; 146 return;
147 147
148 m_bitmap.eraseArea(rect, SkColorSetARGB(0, 0, 0, 0)); 148 m_bitmap.eraseArea(rect, SkColorSetARGB(0, 0, 0, 0));
149 setHasAlpha(true); 149 setHasAlpha(true);
150 } 150 }
151 151
152 } // namespace blink 152 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698