mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1208661 - Implement SourceSurfaceDual::GetDataSurface() for debugging purposes. r=BenWa
This commit is contained in:
parent
0368f4bbce
commit
7c3f43c4ab
@ -27,8 +27,12 @@ public:
|
||||
virtual IntSize GetSize() const { return mA->GetSize(); }
|
||||
virtual SurfaceFormat GetFormat() const { return mA->GetFormat(); }
|
||||
|
||||
/* Readback from this surface type is not supported! */
|
||||
virtual already_AddRefed<DataSourceSurface> GetDataSurface() { return nullptr; }
|
||||
// This is implemented for debugging purposes only (used by dumping
|
||||
// client-side textures for paint dumps), for which we don't care about
|
||||
// component alpha, so we just use the first of the two surfaces.
|
||||
virtual already_AddRefed<DataSourceSurface> GetDataSurface() {
|
||||
return mA->GetDataSurface();
|
||||
}
|
||||
private:
|
||||
friend class DualSurface;
|
||||
friend class DualPattern;
|
||||
|
Loading…
Reference in New Issue
Block a user