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

Side by Side Diff: Source/platform/graphics/ImageBuffer.h

Issue 1013803002: SkPaint::FilterLevel -> SkFilterQuality (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: I think I caught the last one Created 5 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
« no previous file with comments | « Source/platform/graphics/GraphicsTypes.h ('k') | Source/platform/graphics/ImageBufferSurface.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 const IntSize& size() const { return m_surface->size(); } 89 const IntSize& size() const { return m_surface->size(); }
90 bool isAccelerated() const { return m_surface->isAccelerated(); } 90 bool isAccelerated() const { return m_surface->isAccelerated(); }
91 bool isRecording() const { return m_surface->isRecording(); } 91 bool isRecording() const { return m_surface->isRecording(); }
92 void setHasExpensiveOp() { m_surface->setHasExpensiveOp(); } 92 void setHasExpensiveOp() { m_surface->setHasExpensiveOp(); }
93 bool isExpensiveToPaint() const { return m_surface->isExpensiveToPaint(); } 93 bool isExpensiveToPaint() const { return m_surface->isExpensiveToPaint(); }
94 bool isSurfaceValid() const; 94 bool isSurfaceValid() const;
95 bool restoreSurface() const; 95 bool restoreSurface() const;
96 void didDraw(const FloatRect& rect) const { m_surface->didDraw(rect); } 96 void didDraw(const FloatRect& rect) const { m_surface->didDraw(rect); }
97 97
98 void setFilterLevel(SkPaint::FilterLevel filterLevel) { m_surface->setFilter Level(filterLevel); } 98 void setFilterQuality(SkFilterQuality filterQuality) { m_surface->setFilterQ uality(filterQuality); }
99 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); } 99 void setIsHidden(bool hidden) { m_surface->setIsHidden(hidden); }
100 100
101 // Called by subclasses of ImageBufferSurface to install a new canvas object 101 // Called by subclasses of ImageBufferSurface to install a new canvas object
102 void resetCanvas(SkCanvas*); 102 void resetCanvas(SkCanvas*);
103 103
104 void willDrawVideo() { m_surface->willDrawVideo(); } 104 void willDrawVideo() { m_surface->willDrawVideo(); }
105 105
106 GraphicsContext* context() const; // Deprecated: use canvas() 106 GraphicsContext* context() const; // Deprecated: use canvas()
107 SkCanvas* canvas() const; 107 SkCanvas* canvas() const;
108 108
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 unsigned char* pixels() const { return m_data; } 169 unsigned char* pixels() const { return m_data; }
170 int height() const { return m_size.height(); } 170 int height() const { return m_size.height(); }
171 int width() const { return m_size.width(); } 171 int width() const { return m_size.width(); }
172 unsigned char* m_data; 172 unsigned char* m_data;
173 IntSize m_size; 173 IntSize m_size;
174 }; 174 };
175 175
176 } // namespace blink 176 } // namespace blink
177 177
178 #endif // ImageBuffer_h 178 #endif // ImageBuffer_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsTypes.h ('k') | Source/platform/graphics/ImageBufferSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698