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

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

Issue 1407133017: Cleanup some dead code in blink::ImageBuffer and friends (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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) 2008, Google Inc. All rights reserved. 2 * Copyright (c) 2008, Google Inc. All rights reserved.
3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are 7 * modification, are permitted provided that the following conditions are
8 * met: 8 * met:
9 * 9 *
10 * * Redistributions of source code must retain the above copyright 10 * * Redistributions of source code must retain the above copyright
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void ImageBuffer::disableDeferral() const 97 void ImageBuffer::disableDeferral() const
98 { 98 {
99 return m_surface->disableDeferral(); 99 return m_surface->disableDeferral();
100 } 100 }
101 101
102 bool ImageBuffer::writePixels(const SkImageInfo& info, const void* pixels, size_ t rowBytes, int x, int y) 102 bool ImageBuffer::writePixels(const SkImageInfo& info, const void* pixels, size_ t rowBytes, int x, int y)
103 { 103 {
104 return m_surface->writePixels(info, pixels, rowBytes, x, y); 104 return m_surface->writePixels(info, pixels, rowBytes, x, y);
105 } 105 }
106 106
107 const SkBitmap& ImageBuffer::deprecatedBitmapForOverwrite() const
108 {
109 return m_surface->deprecatedBitmapForOverwrite();
110 }
111
112 bool ImageBuffer::isSurfaceValid() const 107 bool ImageBuffer::isSurfaceValid() const
113 { 108 {
114 return m_surface->isValid(); 109 return m_surface->isValid();
115 } 110 }
116 111
117 bool ImageBuffer::isDirty() 112 bool ImageBuffer::isDirty()
118 { 113 {
119 return m_client ? m_client->isDirty() : false; 114 return m_client ? m_client->isDirty() : false;
120 } 115 }
121 116
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 ASSERT(MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(mimeType)); 373 ASSERT(MIMETypeRegistry::isSupportedImageMIMETypeForEncoding(mimeType));
379 374
380 Vector<unsigned char> result; 375 Vector<unsigned char> result;
381 if (!encodeImage(mimeType, quality, &result)) 376 if (!encodeImage(mimeType, quality, &result))
382 return "data:,"; 377 return "data:,";
383 378
384 return "data:" + mimeType + ";base64," + base64Encode(result); 379 return "data:" + mimeType + ";base64," + base64Encode(result);
385 } 380 }
386 381
387 } // namespace blink 382 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698