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

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

Issue 15051011: Add CompositingReasons to compositor layer types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch for landing Created 7 years, 6 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
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 WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ 5 #ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ 6 #define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_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/WebAnimation.h" 9 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimation.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebColor.h" 10 #include "third_party/WebKit/Source/Platform/chromium/public/WebColor.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebCompositingReaso ns.h"
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h" 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebFloatPoint.h"
12 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h" 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayer.h"
13 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h" 14 #include "third_party/WebKit/Source/Platform/chromium/public/WebPoint.h"
14 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h" 15 #include "third_party/WebKit/Source/Platform/chromium/public/WebRect.h"
15 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h" 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebSize.h"
16 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" 17 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h"
17 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h" 18 #include "third_party/WebKit/Source/Platform/chromium/public/WebVector.h"
18 #include "third_party/skia/include/utils/SkMatrix44.h" 19 #include "third_party/skia/include/utils/SkMatrix44.h"
19 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h" 20 #include "webkit/renderer/compositor_bindings/webkit_compositor_bindings_export. h"
20 21
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 virtual void setDrawsContent(bool draws_content); 75 virtual void setDrawsContent(bool draws_content);
75 virtual bool drawsContent() const; 76 virtual bool drawsContent() const;
76 virtual void setPreserves3D(bool preserves_3d); 77 virtual void setPreserves3D(bool preserves_3d);
77 virtual void setUseParentBackfaceVisibility(bool visible); 78 virtual void setUseParentBackfaceVisibility(bool visible);
78 virtual void setBackgroundColor(WebKit::WebColor color); 79 virtual void setBackgroundColor(WebKit::WebColor color);
79 virtual WebKit::WebColor backgroundColor() const; 80 virtual WebKit::WebColor backgroundColor() const;
80 virtual void setFilter(SkImageFilter* filter); 81 virtual void setFilter(SkImageFilter* filter);
81 virtual void setFilters(const WebKit::WebFilterOperations& filters); 82 virtual void setFilters(const WebKit::WebFilterOperations& filters);
82 virtual void setBackgroundFilters(const WebKit::WebFilterOperations& filters); 83 virtual void setBackgroundFilters(const WebKit::WebFilterOperations& filters);
83 virtual void setDebugName(WebKit::WebString name); 84 virtual void setDebugName(WebKit::WebString name);
85 virtual void setCompositingReasons(WebKit::WebCompositingReasons);
84 virtual void setAnimationDelegate(WebKit::WebAnimationDelegate* delegate); 86 virtual void setAnimationDelegate(WebKit::WebAnimationDelegate* delegate);
85 virtual bool addAnimation(WebKit::WebAnimation* animation); 87 virtual bool addAnimation(WebKit::WebAnimation* animation);
86 virtual void removeAnimation(int animation_id); 88 virtual void removeAnimation(int animation_id);
87 virtual void removeAnimation(int animation_id, 89 virtual void removeAnimation(int animation_id,
88 WebKit::WebAnimation::TargetProperty); 90 WebKit::WebAnimation::TargetProperty);
89 virtual void pauseAnimation(int animation_id, double time_offset); 91 virtual void pauseAnimation(int animation_id, double time_offset);
90 virtual void suspendAnimations(double monotonic_time); 92 virtual void suspendAnimations(double monotonic_time);
91 virtual void resumeAnimations(double monotonic_time); 93 virtual void resumeAnimations(double monotonic_time);
92 virtual bool hasActiveAnimation(); 94 virtual bool hasActiveAnimation();
93 virtual void transferAnimationsTo(WebKit::WebLayer* layer); 95 virtual void transferAnimationsTo(WebKit::WebLayer* layer);
(...skipping 25 matching lines...) Expand all
119 protected: 121 protected:
120 scoped_refptr<cc::Layer> layer_; 122 scoped_refptr<cc::Layer> layer_;
121 123
122 private: 124 private:
123 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 125 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
124 }; 126 };
125 127
126 } // namespace WebKit 128 } // namespace WebKit
127 129
128 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ 130 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « webkit/renderer/compositor_bindings/web_compositing_reasons.cc ('k') | webkit/renderer/compositor_bindings/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698