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

Side by Side Diff: sky/engine/platform/graphics/filters/SourceGraphic.h

Issue 1017593005: Add a basic custom painting facility to Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add missing files 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com> 2 * Copyright (C) 2008 Alex Mathews <possessedpenguinbob@gmail.com>
3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org> 3 * Copyright (C) 2009 Dirk Schulze <krit@webkit.org>
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 23 matching lines...) Expand all
34 34
35 static const AtomicString& effectName(); 35 static const AtomicString& effectName();
36 36
37 virtual FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect) override; 37 virtual FloatRect determineAbsolutePaintRect(const FloatRect& requestedRect) override;
38 38
39 virtual FilterEffectType filterEffectType() const override { return FilterEf fectTypeSourceInput; } 39 virtual FilterEffectType filterEffectType() const override { return FilterEf fectTypeSourceInput; }
40 40
41 virtual TextStream& externalRepresentation(TextStream&, int indention) const override; 41 virtual TextStream& externalRepresentation(TextStream&, int indention) const override;
42 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) overrid e; 42 PassRefPtr<SkImageFilter> createImageFilter(SkiaImageFilterBuilder*) overrid e;
43 43
44 void setDisplayList(PassRefPtr<DisplayList>);
45
46
47 private: 44 private:
48 SourceGraphic(Filter* filter) 45 SourceGraphic(Filter* filter)
49 : FilterEffect(filter) 46 : FilterEffect(filter)
50 { 47 {
51 setOperatingColorSpace(ColorSpaceDeviceRGB); 48 setOperatingColorSpace(ColorSpaceDeviceRGB);
52 } 49 }
53 50
54 virtual void applySoftware() override; 51 virtual void applySoftware() override;
55 RefPtr<DisplayList> m_displayList; 52 // TODO(sky): This class appears to be broken...
56 }; 53 };
57 54
58 } //namespace blink 55 } //namespace blink
59 56
60 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_FILTERS_SOURCEGRAPHIC_H_ 57 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_FILTERS_SOURCEGRAPHIC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698