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

Side by Side Diff: third_party/WebKit/Source/web/WebImageDecoder.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) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 ASSERT(m_private); 91 ASSERT(m_private);
92 return m_private->frameCount(); 92 return m_private->frameCount();
93 } 93 }
94 94
95 bool WebImageDecoder::isFrameCompleteAtIndex(int index) const 95 bool WebImageDecoder::isFrameCompleteAtIndex(int index) const
96 { 96 {
97 ASSERT(m_private); 97 ASSERT(m_private);
98 ImageFrame* const frameBuffer = m_private->frameBufferAtIndex(index); 98 ImageFrame* const frameBuffer = m_private->frameBufferAtIndex(index);
99 if (!frameBuffer) 99 if (!frameBuffer)
100 return false; 100 return false;
101 return frameBuffer->status() == ImageFrame::FrameComplete; 101 return frameBuffer->getStatus() == ImageFrame::FrameComplete;
102 } 102 }
103 103
104 WebImage WebImageDecoder::getFrameAtIndex(int index = 0) const 104 WebImage WebImageDecoder::getFrameAtIndex(int index = 0) const
105 { 105 {
106 ASSERT(m_private); 106 ASSERT(m_private);
107 ImageFrame* const frameBuffer = m_private->frameBufferAtIndex(index); 107 ImageFrame* const frameBuffer = m_private->frameBufferAtIndex(index);
108 if (!frameBuffer) 108 if (!frameBuffer)
109 return WebImage(); 109 return WebImage();
110 return WebImage(frameBuffer->bitmap()); 110 return WebImage(frameBuffer->bitmap());
111 } 111 }
112 112
113 } // namespace blink 113 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/DateTimeChooserImpl.cpp ('k') | third_party/WebKit/Source/web/WebInputEventConversion.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698