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

Unified Diff: Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.h

Issue 10690121: Merge 121076 - [chromium] LayerRendererChromium is not getting visibility messages in single thread… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1180/
Patch Set: Created 8 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.h
===================================================================
--- Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.h (revision 122257)
+++ Source/WebCore/platform/graphics/chromium/cc/CCThreadProxy.h (working copy)
@@ -58,6 +58,7 @@
virtual bool isStarted() const OVERRIDE;
virtual bool initializeContext() OVERRIDE;
virtual void setSurfaceReady() OVERRIDE;
+ virtual void setVisible(bool) OVERRIDE;
virtual bool initializeLayerRenderer() OVERRIDE;
virtual bool recreateContext() OVERRIDE;
virtual int compositorIdentifier() const OVERRIDE;
@@ -65,7 +66,6 @@
virtual void loseContext() OVERRIDE;
virtual void setNeedsAnimate() OVERRIDE;
virtual void setNeedsCommit() OVERRIDE;
- virtual void setNeedsForcedCommit() OVERRIDE;
virtual void setNeedsRedraw() OVERRIDE;
virtual bool commitRequested() const OVERRIDE;
virtual void didAddAnimation() OVERRIDE { }
@@ -82,7 +82,6 @@
virtual void setNeedsRedrawOnImplThread() OVERRIDE;
virtual void setNeedsCommitOnImplThread() OVERRIDE;
virtual void postAnimationEventsToMainThreadOnImplThread(PassOwnPtr<CCAnimationEventsVector>, double wallClockTime) OVERRIDE;
- virtual void postSetContentsMemoryAllocationLimitBytesToMainThreadOnImplThread(size_t) OVERRIDE;
// CCSchedulerClient implementation
virtual bool canDraw() OVERRIDE;
@@ -110,6 +109,8 @@
double monotonicFrameBeginTime;
OwnPtr<CCScrollAndScaleSet> scrollInfo;
CCTextureUpdater* updater;
+ bool contentsTexturesWereDeleted;
+ size_t memoryAllocationLimitBytes;
};
OwnPtr<BeginFrameAndCommitState> m_pendingBeginFrameRequest;
@@ -118,7 +119,6 @@
void didCommitAndDrawFrame();
void didCompleteSwapBuffers();
void setAnimationEvents(PassOwnPtr<CCAnimationEventsVector>, double wallClockTime);
- void setContentsMemoryAllocationLimitBytes(size_t);
void beginContextRecreation();
void tryToRecreateContext();
@@ -131,11 +131,13 @@
};
void forceBeginFrameOnImplThread(CCCompletionEvent*);
void beginFrameCompleteOnImplThread(CCCompletionEvent*);
+ void beginFrameAbortedOnImplThread();
void requestReadbackOnImplThread(ReadbackRequest*);
void requestStartPageScaleAnimationOnImplThread(IntSize targetPosition, bool useAnchor, float scale, double durationSec);
void finishAllRenderingOnImplThread(CCCompletionEvent*);
void initializeImplOnImplThread(CCCompletionEvent*);
void setSurfaceReadyOnImplThread();
+ void setVisibleOnImplThread(CCCompletionEvent*, bool);
void initializeContextOnImplThread(CCGraphicsContext*);
void initializeLayerRendererOnImplThread(CCCompletionEvent*, bool* initializeSucceeded, LayerRendererCapabilities*);
void layerTreeHostClosedOnImplThread(CCCompletionEvent*);
@@ -159,6 +161,7 @@
LayerRendererCapabilities m_layerRendererCapabilitiesMainThreadCopy;
bool m_started;
bool m_texturesAcquired;
+ bool m_inCompositeAndReadback;
OwnPtr<CCLayerTreeHostImpl> m_layerTreeHostImpl;

Powered by Google App Engine
This is Rietveld 408576698