OLD | NEW |
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 CC_PROXY_H_ | 5 #ifndef CC_PROXY_H_ |
6 #define CC_PROXY_H_ | 6 #define CC_PROXY_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 void setMainThreadBlocked(bool); | 43 void setMainThreadBlocked(bool); |
44 void setCurrentThreadIsImplThread(bool); | 44 void setCurrentThreadIsImplThread(bool); |
45 #endif | 45 #endif |
46 | 46 |
47 virtual ~Proxy(); | 47 virtual ~Proxy(); |
48 | 48 |
49 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) = 0; | 49 virtual bool compositeAndReadback(void *pixels, const gfx::Rect&) = 0; |
50 | 50 |
51 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnc
hor, float scale, base::TimeDelta duration) = 0; | 51 virtual void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnc
hor, float scale, base::TimeDelta duration) = 0; |
52 | 52 |
| 53 virtual void programmaticScroll(gfx::Vector2d targetOffset) = 0; |
| 54 |
53 virtual void finishAllRendering() = 0; | 55 virtual void finishAllRendering() = 0; |
54 | 56 |
55 virtual bool isStarted() const = 0; | 57 virtual bool isStarted() const = 0; |
56 | 58 |
57 // Attempts to initialize a context to use for rendering. Returns false if t
he context could not be created. | 59 // Attempts to initialize a context to use for rendering. Returns false if t
he context could not be created. |
58 // The context will not be used and no frames may be produced until initiali
zeRenderer() is called. | 60 // The context will not be used and no frames may be produced until initiali
zeRenderer() is called. |
59 virtual bool initializeOutputSurface() = 0; | 61 virtual bool initializeOutputSurface() = 0; |
60 | 62 |
61 // Indicates that the compositing surface associated with our context is rea
dy to use. | 63 // Indicates that the compositing surface associated with our context is rea
dy to use. |
62 virtual void setSurfaceReady() = 0; | 64 virtual void setSurfaceReady() = 0; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 class DebugScopedSetMainThreadBlocked { | 143 class DebugScopedSetMainThreadBlocked { |
142 public: | 144 public: |
143 explicit DebugScopedSetMainThreadBlocked(Proxy*) { } | 145 explicit DebugScopedSetMainThreadBlocked(Proxy*) { } |
144 ~DebugScopedSetMainThreadBlocked() { } | 146 ~DebugScopedSetMainThreadBlocked() { } |
145 }; | 147 }; |
146 #endif | 148 #endif |
147 | 149 |
148 } | 150 } |
149 | 151 |
150 #endif // CC_PROXY_H_ | 152 #endif // CC_PROXY_H_ |
OLD | NEW |