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

Side by Side Diff: public/platform/WebLayerTreeView.h

Issue 946323002: Animations: Introduce compositor AnimationPlayer and AnimationTimeline. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 20 matching lines...) Expand all
31 #include "WebFloatPoint.h" 31 #include "WebFloatPoint.h"
32 #include "WebNonCopyable.h" 32 #include "WebNonCopyable.h"
33 #include "WebPrivateOwnPtr.h" 33 #include "WebPrivateOwnPtr.h"
34 #include "WebSize.h" 34 #include "WebSize.h"
35 35
36 class SkBitmap; 36 class SkBitmap;
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class WebCompositeAndReadbackAsyncCallback; 40 class WebCompositeAndReadbackAsyncCallback;
41 class WebCompositorAnimationTimeline;
41 class WebLayer; 42 class WebLayer;
42 struct WebPoint; 43 struct WebPoint;
43 struct WebSelectionBound; 44 struct WebSelectionBound;
44 45
45 class WebLayerTreeView { 46 class WebLayerTreeView {
46 public: 47 public:
47 virtual ~WebLayerTreeView() { } 48 virtual ~WebLayerTreeView() { }
48 49
49 // Initialization and lifecycle -------------------------------------- 50 // Initialization and lifecycle --------------------------------------
50 51
51 // Sets the root of the tree. The root is set by way of the constructor. 52 // Sets the root of the tree. The root is set by way of the constructor.
52 virtual void setRootLayer(const WebLayer&) = 0; 53 virtual void setRootLayer(const WebLayer&) = 0;
53 virtual void clearRootLayer() = 0; 54 virtual void clearRootLayer() = 0;
54 55
56 virtual void setCompositorAnimationTimeline(WebCompositorAnimationTimeline*) { }
55 57
56 // View properties --------------------------------------------------- 58 // View properties ---------------------------------------------------
57 59
58 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0; 60 virtual void setViewportSize(const WebSize& deviceViewportSize) = 0;
59 // Gives the viewport size in physical device pixels. 61 // Gives the viewport size in physical device pixels.
60 virtual WebSize deviceViewportSize() const = 0; 62 virtual WebSize deviceViewportSize() const = 0;
61 63
62 virtual void setDeviceScaleFactor(float) = 0; 64 virtual void setDeviceScaleFactor(float) = 0;
63 virtual float deviceScaleFactor() const = 0; 65 virtual float deviceScaleFactor() const = 0;
64 66
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // Toggles continuous painting 143 // Toggles continuous painting
142 virtual void setContinuousPaintingEnabled(bool) { } 144 virtual void setContinuousPaintingEnabled(bool) { }
143 145
144 // Toggles scroll bottleneck rects on the HUD layer 146 // Toggles scroll bottleneck rects on the HUD layer
145 virtual void setShowScrollBottleneckRects(bool) { } 147 virtual void setShowScrollBottleneckRects(bool) { }
146 }; 148 };
147 149
148 } // namespace blink 150 } // namespace blink
149 151
150 #endif // WebLayerTreeView_h 152 #endif // WebLayerTreeView_h
OLDNEW
« Source/core/animation/AnimationPlayer.cpp ('K') | « public/platform/WebCompositorSupport.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698