Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> | 2 * Copyright (C) 2006 Nikolas Zimmermann <zimmermann@kde.org> |
| 3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. |
| 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 | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 | 76 |
| 77 ~ImageBuffer(); | 77 ~ImageBuffer(); |
| 78 | 78 |
| 79 void setClient(ImageBufferClient* client) { m_client = client; } | 79 void setClient(ImageBufferClient* client) { m_client = client; } |
| 80 | 80 |
| 81 const IntSize& size() const { return m_surface->size(); } | 81 const IntSize& size() const { return m_surface->size(); } |
| 82 bool isAccelerated() const { return m_surface->isAccelerated(); } | 82 bool isAccelerated() const { return m_surface->isAccelerated(); } |
| 83 bool isSurfaceValid() const; | 83 bool isSurfaceValid() const; |
| 84 bool restoreSurface() const; | 84 bool restoreSurface() const; |
| 85 | 85 |
| 86 void setNearestNeighbor(bool nearestNeighbor) { m_surface->setNearestNeighbo r(nearestNeighbor); } | |
|
Justin Novosad
2014/09/10 14:28:31
You should use an enum rather than a bool. Somethi
Stephen White
2014/09/10 15:37:09
Good point, but I don't think we should expose Ski
jackhou1
2014/09/11 08:26:31
Used SkPaint::FilterLevel as that's what Interpola
| |
| 86 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } | 87 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } |
| 87 | 88 |
| 88 GraphicsContext* context() const; | 89 GraphicsContext* context() const; |
| 89 | 90 |
| 90 // Called at the end of a task that rendered a whole frame | 91 // Called at the end of a task that rendered a whole frame |
| 91 void finalizeFrame(const FloatRect &dirtyRect); | 92 void finalizeFrame(const FloatRect &dirtyRect); |
| 92 void didFinalizeFrame(); | 93 void didFinalizeFrame(); |
| 93 | 94 |
| 94 bool isDirty(); | 95 bool isDirty(); |
| 95 | 96 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 148 | 149 |
| 149 IntSize m_size; | 150 IntSize m_size; |
| 150 RefPtr<Uint8ClampedArray> m_data; | 151 RefPtr<Uint8ClampedArray> m_data; |
| 151 }; | 152 }; |
| 152 | 153 |
| 153 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String& mimeType, const double* quality); | 154 String PLATFORM_EXPORT ImageDataToDataURL(const ImageDataBuffer&, const String& mimeType, const double* quality); |
| 154 | 155 |
| 155 } // namespace blink | 156 } // namespace blink |
| 156 | 157 |
| 157 #endif // ImageBuffer_h | 158 #endif // ImageBuffer_h |
| OLD | NEW |