OLD | NEW |
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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 virtual ~CCSingleThreadProxy(); | 43 virtual ~CCSingleThreadProxy(); |
44 | 44 |
45 // CCProxy implementation | 45 // CCProxy implementation |
46 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE; | 46 virtual bool compositeAndReadback(void *pixels, const IntRect&) OVERRIDE; |
47 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use
Anchor, float scale, double duration) OVERRIDE; | 47 virtual void startPageScaleAnimation(const IntSize& targetPosition, bool use
Anchor, float scale, double duration) OVERRIDE; |
48 virtual CCGraphicsContext* context() OVERRIDE; | 48 virtual CCGraphicsContext* context() OVERRIDE; |
49 virtual void finishAllRendering() OVERRIDE; | 49 virtual void finishAllRendering() OVERRIDE; |
50 virtual bool isStarted() const OVERRIDE; | 50 virtual bool isStarted() const OVERRIDE; |
51 virtual bool initializeContext() OVERRIDE; | 51 virtual bool initializeContext() OVERRIDE; |
52 virtual void setSurfaceReady() OVERRIDE; | 52 virtual void setSurfaceReady() OVERRIDE; |
| 53 virtual void setVisible(bool) OVERRIDE; |
53 virtual bool initializeLayerRenderer() OVERRIDE; | 54 virtual bool initializeLayerRenderer() OVERRIDE; |
54 virtual bool recreateContext() OVERRIDE; | 55 virtual bool recreateContext() OVERRIDE; |
55 virtual int compositorIdentifier() const OVERRIDE { return m_compositorIdent
ifier; } | 56 virtual int compositorIdentifier() const OVERRIDE { return m_compositorIdent
ifier; } |
56 virtual const LayerRendererCapabilities& layerRendererCapabilities() const O
VERRIDE; | 57 virtual const LayerRendererCapabilities& layerRendererCapabilities() const O
VERRIDE; |
57 virtual void loseContext() OVERRIDE; | 58 virtual void loseContext() OVERRIDE; |
58 virtual void setNeedsAnimate() OVERRIDE; | 59 virtual void setNeedsAnimate() OVERRIDE; |
59 virtual void setNeedsCommit() OVERRIDE; | 60 virtual void setNeedsCommit() OVERRIDE; |
60 virtual void setNeedsForcedCommit() OVERRIDE; | |
61 virtual void setNeedsRedraw() OVERRIDE; | 61 virtual void setNeedsRedraw() OVERRIDE; |
62 virtual bool commitRequested() const OVERRIDE; | 62 virtual bool commitRequested() const OVERRIDE; |
63 virtual void didAddAnimation() OVERRIDE; | 63 virtual void didAddAnimation() OVERRIDE; |
64 virtual void start() OVERRIDE; | 64 virtual void start() OVERRIDE; |
65 virtual void stop() OVERRIDE; | 65 virtual void stop() OVERRIDE; |
66 virtual size_t maxPartialTextureUpdates() const OVERRIDE { return std::numer
ic_limits<size_t>::max(); } | 66 virtual size_t maxPartialTextureUpdates() const OVERRIDE { return std::numer
ic_limits<size_t>::max(); } |
67 virtual void acquireLayerTextures() OVERRIDE { } | 67 virtual void acquireLayerTextures() OVERRIDE { } |
68 virtual void setFontAtlas(PassOwnPtr<CCFontAtlas>) OVERRIDE; | 68 virtual void setFontAtlas(PassOwnPtr<CCFontAtlas>) OVERRIDE; |
69 virtual void forceSerializeOnSwapBuffers() OVERRIDE; | 69 virtual void forceSerializeOnSwapBuffers() OVERRIDE; |
70 | 70 |
71 // CCLayerTreeHostImplClient implementation | 71 // CCLayerTreeHostImplClient implementation |
72 virtual void didLoseContextOnImplThread() OVERRIDE { } | 72 virtual void didLoseContextOnImplThread() OVERRIDE { } |
73 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { ASSERT_NOT_REACH
ED(); } | 73 virtual void onSwapBuffersCompleteOnImplThread() OVERRIDE { ASSERT_NOT_REACH
ED(); } |
74 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_layerTreeHost->schedu
leComposite(); } | 74 virtual void setNeedsRedrawOnImplThread() OVERRIDE { m_layerTreeHost->schedu
leComposite(); } |
75 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_layerTreeHost->schedu
leComposite(); } | 75 virtual void setNeedsCommitOnImplThread() OVERRIDE { m_layerTreeHost->schedu
leComposite(); } |
76 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; | 76 virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimat
ionEventsVector>, double wallClockTime) OVERRIDE; |
77 virtual void postSetContentsMemoryAllocationLimitBytesToMainThreadOnImplThre
ad(size_t) OVERRIDE; | |
78 | 77 |
79 // Called by the legacy path where RenderWidget does the scheduling. | 78 // Called by the legacy path where RenderWidget does the scheduling. |
80 void compositeImmediately(); | 79 void compositeImmediately(); |
81 | 80 |
82 // Measured in seconds. | 81 // Measured in seconds. |
83 static double animationTimerDelay(); | 82 static double animationTimerDelay(); |
84 | 83 |
85 private: | 84 private: |
86 friend class CCSingleThreadProxyAnimationTimer; | 85 friend class CCSingleThreadProxyAnimationTimer; |
87 | 86 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 { | 142 { |
144 #if !ASSERT_DISABLED | 143 #if !ASSERT_DISABLED |
145 CCProxy::setCurrentThreadIsImplThread(true); | 144 CCProxy::setCurrentThreadIsImplThread(true); |
146 #endif | 145 #endif |
147 } | 146 } |
148 }; | 147 }; |
149 | 148 |
150 } // namespace WebCore | 149 } // namespace WebCore |
151 | 150 |
152 #endif | 151 #endif |
OLD | NEW |