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

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

Issue 189883009: Define a --force-gpu-rasterization flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Minor logic fix-up 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 class WebToCCAnimationDelegateAdapter; 45 class WebToCCAnimationDelegateAdapter;
46 46
47 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient { 47 class WebLayerImpl : public blink::WebLayer, public cc::LayerClient {
48 public: 48 public:
49 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl(); 49 WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImpl();
50 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl( 50 WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImpl(
51 scoped_refptr<cc::Layer>); 51 scoped_refptr<cc::Layer>);
52 virtual ~WebLayerImpl(); 52 virtual ~WebLayerImpl();
53 53
54 static bool UsingPictureLayer(); 54 static bool UsingPictureLayer();
55 WEBKIT_COMPOSITOR_BINDINGS_EXPORT static void SetImplSidePaintingEnabled(
56 bool enabled);
55 57
56 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::Layer* layer() const; 58 WEBKIT_COMPOSITOR_BINDINGS_EXPORT cc::Layer* layer() const;
57 59
58 // WebLayer implementation. 60 // WebLayer implementation.
59 virtual int id() const; 61 virtual int id() const;
60 virtual void invalidateRect(const blink::WebFloatRect&); 62 virtual void invalidateRect(const blink::WebFloatRect&);
61 virtual void invalidate(); 63 virtual void invalidate();
62 virtual void addChild(blink::WebLayer* child); 64 virtual void addChild(blink::WebLayer* child);
63 virtual void insertChild(blink::WebLayer* child, size_t index); 65 virtual void insertChild(blink::WebLayer* child, size_t index);
64 virtual void replaceChild(blink::WebLayer* reference, 66 virtual void replaceChild(blink::WebLayer* reference,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 146
145 private: 147 private:
146 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 148 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
147 149
148 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 150 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
149 }; 151 };
150 152
151 } // namespace webkit 153 } // namespace webkit
152 154
153 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_ 155 #endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698