Missing overrides for Sinks in HWUI.
See crrev.com/1263113002 BUG=skia:4138 Review URL: https://codereview.chromium.org/1263143004
This commit is contained in:
parent
17d833b05b
commit
f23190078b
@ -25,6 +25,7 @@ public:
|
||||
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
|
||||
int enclave() const override { return kGPU_Enclave; }
|
||||
const char* fileExtension() const override { return "png"; }
|
||||
SinkFlags flags() const override { return SinkFlags{ SinkFlags::kGPU, SinkFlags::kDirect }; }
|
||||
};
|
||||
|
||||
/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
|
||||
@ -38,6 +39,11 @@ public:
|
||||
Error draw(const Src&, SkBitmap*, SkWStream*, SkString*) const override;
|
||||
int enclave() const override { return fSink->enclave(); }
|
||||
const char* fileExtension() const override { return fSink->fileExtension(); }
|
||||
SinkFlags flags() const override {
|
||||
SinkFlags flags = fSink->flags();
|
||||
flags.approach = SinkFlags::kIndirect;
|
||||
return flags;
|
||||
}
|
||||
|
||||
private:
|
||||
SkAutoTDelete<Sink> fSink;
|
||||
|
Loading…
Reference in New Issue
Block a user