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

Side by Side Diff: content/renderer/gpu/render_widget_compositor.h

Issue 947033002: CC Animations: Establish AnimationHost, AnimationTimeline and AnimationPlayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set up impl-only timelines for ScrollOffset animations Created 5 years, 8 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 | « cc/trees/layer_tree_mutators_client.h ('k') | content/renderer/gpu/render_widget_compositor.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 5 #ifndef CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 6 #define CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 int ScheduleMicroBenchmark( 75 int ScheduleMicroBenchmark(
76 const std::string& name, 76 const std::string& name,
77 scoped_ptr<base::Value> value, 77 scoped_ptr<base::Value> value,
78 const base::Callback<void(scoped_ptr<base::Value>)>& callback); 78 const base::Callback<void(scoped_ptr<base::Value>)>& callback);
79 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value); 79 bool SendMessageToMicroBenchmark(int id, scoped_ptr<base::Value> value);
80 void StartCompositor(); 80 void StartCompositor();
81 81
82 // WebLayerTreeView implementation. 82 // WebLayerTreeView implementation.
83 virtual void setRootLayer(const blink::WebLayer& layer); 83 virtual void setRootLayer(const blink::WebLayer& layer);
84 virtual void clearRootLayer(); 84 virtual void clearRootLayer();
85 virtual void attachCompositorAnimationTimeline(
86 blink::WebCompositorAnimationTimeline* compositor_timeline);
87 virtual void detachCompositorAnimationTimeline(
88 blink::WebCompositorAnimationTimeline* compositor_timeline);
85 virtual void setViewportSize( 89 virtual void setViewportSize(
86 const blink::WebSize& unused_deprecated, 90 const blink::WebSize& unused_deprecated,
87 const blink::WebSize& device_viewport_size); 91 const blink::WebSize& device_viewport_size);
88 virtual void setViewportSize(const blink::WebSize& device_viewport_size); 92 virtual void setViewportSize(const blink::WebSize& device_viewport_size);
89 virtual blink::WebSize layoutViewportSize() const; 93 virtual blink::WebSize layoutViewportSize() const;
90 virtual blink::WebSize deviceViewportSize() const; 94 virtual blink::WebSize deviceViewportSize() const;
91 virtual blink::WebFloatPoint adjustEventPointForPinchZoom( 95 virtual blink::WebFloatPoint adjustEventPointForPinchZoom(
92 const blink::WebFloatPoint& point) const; 96 const blink::WebFloatPoint& point) const;
93 virtual void setDeviceScaleFactor(float device_scale); 97 virtual void setDeviceScaleFactor(float device_scale);
94 virtual float deviceScaleFactor() const; 98 virtual float deviceScaleFactor() const;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 184 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
181 185
182 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_; 186 scoped_ptr<cc::CopyOutputRequest> temporary_copy_output_request_;
183 187
184 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_; 188 base::WeakPtrFactory<RenderWidgetCompositor> weak_factory_;
185 }; 189 };
186 190
187 } // namespace content 191 } // namespace content
188 192
189 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_ 193 #endif // CONTENT_RENDERER_GPU_RENDER_WIDGET_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_mutators_client.h ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698