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

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

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | 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 <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 virtual SkMatrix44 transform() const; 89 virtual SkMatrix44 transform() const;
90 virtual void setDrawsContent(bool draws_content); 90 virtual void setDrawsContent(bool draws_content);
91 virtual bool drawsContent() const; 91 virtual bool drawsContent() const;
92 virtual void setShouldFlattenTransform(bool flatten); 92 virtual void setShouldFlattenTransform(bool flatten);
93 virtual void setRenderingContext(int context); 93 virtual void setRenderingContext(int context);
94 virtual void setUseParentBackfaceVisibility(bool visible); 94 virtual void setUseParentBackfaceVisibility(bool visible);
95 virtual void setBackgroundColor(blink::WebColor color); 95 virtual void setBackgroundColor(blink::WebColor color);
96 virtual blink::WebColor backgroundColor() const; 96 virtual blink::WebColor backgroundColor() const;
97 virtual void setFilters(const blink::WebFilterOperations& filters); 97 virtual void setFilters(const blink::WebFilterOperations& filters);
98 virtual void setBackgroundFilters(const blink::WebFilterOperations& filters); 98 virtual void setBackgroundFilters(const blink::WebFilterOperations& filters);
99 virtual void setHasGpuRasterizationHint(bool has_hint);
99 virtual void setAnimationDelegate(blink::WebAnimationDelegate* delegate); 100 virtual void setAnimationDelegate(blink::WebAnimationDelegate* delegate);
100 virtual bool addAnimation(blink::WebAnimation* animation); 101 virtual bool addAnimation(blink::WebAnimation* animation);
101 virtual void removeAnimation(int animation_id); 102 virtual void removeAnimation(int animation_id);
102 virtual void removeAnimation(int animation_id, 103 virtual void removeAnimation(int animation_id,
103 blink::WebAnimation::TargetProperty); 104 blink::WebAnimation::TargetProperty);
104 virtual void pauseAnimation(int animation_id, double time_offset); 105 virtual void pauseAnimation(int animation_id, double time_offset);
105 virtual bool hasActiveAnimation(); 106 virtual bool hasActiveAnimation();
106 virtual void setForceRenderSurface(bool force); 107 virtual void setForceRenderSurface(bool force);
107 virtual void setScrollPosition(blink::WebPoint position); 108 virtual void setScrollPosition(blink::WebPoint position);
108 virtual blink::WebPoint scrollPosition() const; 109 virtual blink::WebPoint scrollPosition() const;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 145
145 private: 146 private:
146 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 147 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
147 148
148 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 149 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
149 }; 150 };
150 151
151 } // namespace webkit 152 } // namespace webkit
152 153
153 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ 154 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698