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

Side by Side Diff: webkit/compositor_bindings/web_layer_impl.h

Issue 11175009: Implement SkImageFilter support in the compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated to ToT (past the Great Renaming) Created 8 years, 2 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
« no previous file with comments | « cc/render_surface_impl.cc ('k') | webkit/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 WebLayerImpl_h 5 #ifndef WebLayerImpl_h
6 #define WebLayerImpl_h 6 #define WebLayerImpl_h
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
10 10
11 namespace cc { 11 namespace cc {
12 class Layer; 12 class Layer;
13 } 13 }
14 14
15 // TODO(senorblanco): Remove this once WebKit changes have landed.
16 class SkImageFilter;
17
15 namespace WebKit { 18 namespace WebKit {
16 19
17 class WebLayerImpl : public WebLayer { 20 class WebLayerImpl : public WebLayer {
18 public: 21 public:
19 WebLayerImpl(); 22 WebLayerImpl();
20 explicit WebLayerImpl(scoped_refptr<cc::Layer>); 23 explicit WebLayerImpl(scoped_refptr<cc::Layer>);
21 virtual ~WebLayerImpl(); 24 virtual ~WebLayerImpl();
22 25
23 // WebLayer implementation. 26 // WebLayer implementation.
24 virtual int id() const OVERRIDE; 27 virtual int id() const OVERRIDE;
(...skipping 25 matching lines...) Expand all
50 virtual SkMatrix44 sublayerTransform() const OVERRIDE; 53 virtual SkMatrix44 sublayerTransform() const OVERRIDE;
51 virtual void setTransform(const SkMatrix44&) OVERRIDE; 54 virtual void setTransform(const SkMatrix44&) OVERRIDE;
52 virtual void setTransform(const WebTransformationMatrix&) OVERRIDE; 55 virtual void setTransform(const WebTransformationMatrix&) OVERRIDE;
53 virtual SkMatrix44 transform() const OVERRIDE; 56 virtual SkMatrix44 transform() const OVERRIDE;
54 virtual void setDrawsContent(bool) OVERRIDE; 57 virtual void setDrawsContent(bool) OVERRIDE;
55 virtual bool drawsContent() const OVERRIDE; 58 virtual bool drawsContent() const OVERRIDE;
56 virtual void setPreserves3D(bool) OVERRIDE; 59 virtual void setPreserves3D(bool) OVERRIDE;
57 virtual void setUseParentBackfaceVisibility(bool) OVERRIDE; 60 virtual void setUseParentBackfaceVisibility(bool) OVERRIDE;
58 virtual void setBackgroundColor(WebColor) OVERRIDE; 61 virtual void setBackgroundColor(WebColor) OVERRIDE;
59 virtual WebColor backgroundColor() const; 62 virtual WebColor backgroundColor() const;
63 virtual void setFilter(SkImageFilter*);
60 virtual void setFilters(const WebFilterOperations&) OVERRIDE; 64 virtual void setFilters(const WebFilterOperations&) OVERRIDE;
61 virtual void setBackgroundFilters(const WebFilterOperations&) OVERRIDE; 65 virtual void setBackgroundFilters(const WebFilterOperations&) OVERRIDE;
62 virtual void setDebugBorderColor(const WebColor&) OVERRIDE; 66 virtual void setDebugBorderColor(const WebColor&) OVERRIDE;
63 virtual void setDebugBorderWidth(float) OVERRIDE; 67 virtual void setDebugBorderWidth(float) OVERRIDE;
64 virtual void setDebugName(WebString) OVERRIDE; 68 virtual void setDebugName(WebString) OVERRIDE;
65 virtual void setAnimationDelegate(WebAnimationDelegate*) OVERRIDE; 69 virtual void setAnimationDelegate(WebAnimationDelegate*) OVERRIDE;
66 virtual bool addAnimation(WebAnimation*) OVERRIDE; 70 virtual bool addAnimation(WebAnimation*) OVERRIDE;
67 virtual void removeAnimation(int animationId) OVERRIDE; 71 virtual void removeAnimation(int animationId) OVERRIDE;
68 virtual void removeAnimation(int animationId, WebAnimation::TargetProperty) OVERRIDE; 72 virtual void removeAnimation(int animationId, WebAnimation::TargetProperty) OVERRIDE;
69 virtual void pauseAnimation(int animationId, double timeOffset) OVERRIDE; 73 virtual void pauseAnimation(int animationId, double timeOffset) OVERRIDE;
(...skipping 22 matching lines...) Expand all
92 96
93 cc::Layer* layer() const; 97 cc::Layer* layer() const;
94 98
95 protected: 99 protected:
96 scoped_refptr<cc::Layer> m_layer; 100 scoped_refptr<cc::Layer> m_layer;
97 }; 101 };
98 102
99 } // namespace WebKit 103 } // namespace WebKit
100 104
101 #endif // WebLayerImpl_h 105 #endif // WebLayerImpl_h
OLDNEW
« no previous file with comments | « cc/render_surface_impl.cc ('k') | webkit/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698