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

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

Issue 1195963006: Removing getBackingTextureImage from ImageBufferSurface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: build fix Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2013, Google Inc. All rights reserved. 2 * Copyright (c) 2013, 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 virtual void setFilterQuality(SkFilterQuality) { } 75 virtual void setFilterQuality(SkFilterQuality) { }
76 virtual void setIsHidden(bool) { } 76 virtual void setIsHidden(bool) { }
77 virtual void setImageBuffer(ImageBuffer*) { } 77 virtual void setImageBuffer(ImageBuffer*) { }
78 virtual PassRefPtr<SkPicture> getPicture(); 78 virtual PassRefPtr<SkPicture> getPicture();
79 virtual void finalizeFrame(const FloatRect &dirtyRect) { } 79 virtual void finalizeFrame(const FloatRect &dirtyRect) { }
80 virtual void willDrawVideo() { } 80 virtual void willDrawVideo() { }
81 virtual void willOverwriteCanvas() { } 81 virtual void willOverwriteCanvas() { }
82 virtual void draw(GraphicsContext*, const FloatRect& destRect, const FloatRe ct& srcRect, SkXfermode::Mode); 82 virtual void draw(GraphicsContext*, const FloatRect& destRect, const FloatRe ct& srcRect, SkXfermode::Mode);
83 virtual void setHasExpensiveOp() { } 83 virtual void setHasExpensiveOp() { }
84 84
85 // These methods return an SkImage representing the backing texture. We supp ort both variants
86 // to avoid the snapshot overhead (flushing deferred draws, COW semantics, f allback in
87 // RecordingImageBufferSurface) when not strictly required.
88 virtual PassRefPtr<SkImage> newImageSnapshot() const { return nullptr; } 85 virtual PassRefPtr<SkImage> newImageSnapshot() const { return nullptr; }
reed1 2015/06/23 15:57:55 Lets add some dox here, describing when/why it mig
89 virtual PassRefPtr<SkImage> getBackingTextureImage() const { return nullptr; }
90 86
91 OpacityMode opacityMode() const { return m_opacityMode; } 87 OpacityMode opacityMode() const { return m_opacityMode; }
92 const IntSize& size() const { return m_size; } 88 const IntSize& size() const { return m_size; }
93 void notifyIsValidChanged(bool isValid) const; 89 void notifyIsValidChanged(bool isValid) const;
94 90
95 protected: 91 protected:
96 ImageBufferSurface(const IntSize&, OpacityMode); 92 ImageBufferSurface(const IntSize&, OpacityMode);
97 void clear(); 93 void clear();
98 94
99 private: 95 private:
100 OpacityMode m_opacityMode; 96 OpacityMode m_opacityMode;
101 IntSize m_size; 97 IntSize m_size;
102 }; 98 };
103 99
104 } // namespace blink 100 } // namespace blink
105 101
106 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/platform/graphics/ImageBuffer.cpp ('k') | Source/platform/graphics/RecordingImageBufferSurface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698