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

Side by Side Diff: cc/blink/web_layer_impl.h

Issue 397443002: [not for review] Add Draw entries to window Performance Timeline Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use damage rect not viewport rect Created 6 years, 3 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
« no previous file with comments | « no previous file | cc/blink/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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CC_BLINK_WEB_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <utility>
9 10
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
12 #include "cc/blink/cc_blink_export.h" 13 #include "cc/blink/cc_blink_export.h"
13 #include "cc/layers/layer_client.h" 14 #include "cc/layers/layer_client.h"
14 #include "third_party/WebKit/public/platform/WebCString.h" 15 #include "third_party/WebKit/public/platform/WebCString.h"
15 #include "third_party/WebKit/public/platform/WebColor.h" 16 #include "third_party/WebKit/public/platform/WebColor.h"
16 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h" 17 #include "third_party/WebKit/public/platform/WebCompositorAnimation.h"
17 #include "third_party/WebKit/public/platform/WebFloatPoint.h" 18 #include "third_party/WebKit/public/platform/WebFloatPoint.h"
18 #include "third_party/WebKit/public/platform/WebLayer.h" 19 #include "third_party/WebKit/public/platform/WebLayer.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 virtual void setHaveScrollEventHandlers(bool have_scroll_event_handlers); 115 virtual void setHaveScrollEventHandlers(bool have_scroll_event_handlers);
115 virtual bool haveScrollEventHandlers() const; 116 virtual bool haveScrollEventHandlers() const;
116 virtual void setShouldScrollOnMainThread(bool scroll_on_main); 117 virtual void setShouldScrollOnMainThread(bool scroll_on_main);
117 virtual bool shouldScrollOnMainThread() const; 118 virtual bool shouldScrollOnMainThread() const;
118 virtual void setNonFastScrollableRegion( 119 virtual void setNonFastScrollableRegion(
119 const blink::WebVector<blink::WebRect>& region); 120 const blink::WebVector<blink::WebRect>& region);
120 virtual blink::WebVector<blink::WebRect> nonFastScrollableRegion() const; 121 virtual blink::WebVector<blink::WebRect> nonFastScrollableRegion() const;
121 virtual void setTouchEventHandlerRegion( 122 virtual void setTouchEventHandlerRegion(
122 const blink::WebVector<blink::WebRect>& region); 123 const blink::WebVector<blink::WebRect>& region);
123 virtual blink::WebVector<blink::WebRect> touchEventHandlerRegion() const; 124 virtual blink::WebVector<blink::WebRect> touchEventHandlerRegion() const;
125 virtual void setSmoothnessTimingRequests(
126 const blink::WebVector<std::pair<int64_t, blink::WebRect> >& rects);
127 virtual blink::WebVector<std::pair<int64_t, blink::WebRect> >
128 smoothnessTimingRequests() const;
124 virtual void setIsContainerForFixedPositionLayers(bool is_container); 129 virtual void setIsContainerForFixedPositionLayers(bool is_container);
125 virtual bool isContainerForFixedPositionLayers() const; 130 virtual bool isContainerForFixedPositionLayers() const;
126 virtual void setPositionConstraint( 131 virtual void setPositionConstraint(
127 const blink::WebLayerPositionConstraint& constraint); 132 const blink::WebLayerPositionConstraint& constraint);
128 virtual blink::WebLayerPositionConstraint positionConstraint() const; 133 virtual blink::WebLayerPositionConstraint positionConstraint() const;
129 virtual void setScrollClient(blink::WebLayerScrollClient* client); 134 virtual void setScrollClient(blink::WebLayerScrollClient* client);
130 virtual bool isOrphan() const; 135 virtual bool isOrphan() const;
131 virtual void setWebLayerClient(blink::WebLayerClient* client); 136 virtual void setWebLayerClient(blink::WebLayerClient* client);
132 137
133 // LayerClient implementation. 138 // LayerClient implementation.
134 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo() 139 virtual scoped_refptr<base::debug::ConvertableToTraceFormat> TakeDebugInfo()
135 OVERRIDE; 140 OVERRIDE;
136 141
137 virtual void setScrollParent(blink::WebLayer* parent); 142 virtual void setScrollParent(blink::WebLayer* parent);
138 virtual void setClipParent(blink::WebLayer* parent); 143 virtual void setClipParent(blink::WebLayer* parent);
139 144
140 protected: 145 protected:
141 scoped_refptr<cc::Layer> layer_; 146 scoped_refptr<cc::Layer> layer_;
142 blink::WebLayerClient* web_layer_client_; 147 blink::WebLayerClient* web_layer_client_;
143 148
144 private: 149 private:
145 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_; 150 scoped_ptr<WebToCCAnimationDelegateAdapter> animation_delegate_adapter_;
146 151
147 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 152 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
148 }; 153 };
149 154
150 } // namespace cc_blink 155 } // namespace cc_blink
151 156
152 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ 157 #endif // CC_BLINK_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698