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

Side by Side Diff: third_party/WebKit/Source/core/css/CSSPaintImageGenerator.h

Issue 1896893004: Hook up style invalidation for CSS Paint API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@css-paint-register
Patch Set: rebase. Created 4 years, 7 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 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CSSPaintImageGenerator_h 5 #ifndef CSSPaintImageGenerator_h
6 #define CSSPaintImageGenerator_h 6 #define CSSPaintImageGenerator_h
7 7
8 #include "core/CSSPropertyNames.h"
8 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
9 #include "platform/geometry/IntSize.h" 10 #include "platform/geometry/IntSize.h"
10 #include "platform/heap/Handle.h" 11 #include "platform/heap/Handle.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class Document; 15 class Document;
15 class Image; 16 class Image;
16 17
17 // Produces a PaintGeneratedImage from a CSS Paint API callback. 18 // Produces a PaintGeneratedImage from a CSS Paint API callback.
(...skipping 14 matching lines...) Expand all
32 static CSSPaintImageGenerator* create(const String& name, Document&, Observe r*); 33 static CSSPaintImageGenerator* create(const String& name, Document&, Observe r*);
33 virtual ~CSSPaintImageGenerator(); 34 virtual ~CSSPaintImageGenerator();
34 35
35 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)(cons t String&, Document&, Observer*); 36 typedef CSSPaintImageGenerator* (*CSSPaintImageGeneratorCreateFunction)(cons t String&, Document&, Observer*);
36 static void init(CSSPaintImageGeneratorCreateFunction); 37 static void init(CSSPaintImageGeneratorCreateFunction);
37 38
38 // Invokes the CSS Paint API 'paint' callback. May return a nullptr 39 // Invokes the CSS Paint API 'paint' callback. May return a nullptr
39 // representing an invalid image if an error occurred. 40 // representing an invalid image if an error occurred.
40 virtual PassRefPtr<Image> paint(const IntSize&) = 0; 41 virtual PassRefPtr<Image> paint(const IntSize&) = 0;
41 42
43 virtual const Vector<CSSPropertyID>& nativeInvalidationProperties() const = 0;
44 virtual const Vector<AtomicString>& customInvalidationProperties() const = 0 ;
45
42 DEFINE_INLINE_VIRTUAL_TRACE() { } 46 DEFINE_INLINE_VIRTUAL_TRACE() { }
43 }; 47 };
44 48
45 } // namespace blink 49 } // namespace blink
46 50
47 #endif // CSSPaintImageGenerator_h 51 #endif // CSSPaintImageGenerator_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/CSSPaintValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698