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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.h

Issue 10836250: Merge 125577 - [chromium] race between CCLayerTreeHostImpl::releaseContentsTextures and CCThreadPro… (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1229/
Patch Set: Created 8 years, 4 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 | « no previous file | Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 PassOwnPtr<CCLayerImpl> detachLayerTree(); 138 PassOwnPtr<CCLayerImpl> detachLayerTree();
139 139
140 CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; } 140 CCLayerImpl* rootScrollLayer() const { return m_rootScrollLayerImpl; }
141 141
142 bool visible() const { return m_visible; } 142 bool visible() const { return m_visible; }
143 void setVisible(bool); 143 void setVisible(bool);
144 144
145 int sourceFrameNumber() const { return m_sourceFrameNumber; } 145 int sourceFrameNumber() const { return m_sourceFrameNumber; }
146 void setSourceFrameNumber(int frameNumber) { m_sourceFrameNumber = frameNumb er; } 146 void setSourceFrameNumber(int frameNumber) { m_sourceFrameNumber = frameNumb er; }
147 147
148 bool contentsTexturesWerePurgedSinceLastCommit() const { return m_contentsTe xturesWerePurgedSinceLastCommit; } 148 bool contentsTexturesPurged() const { return m_contentsTexturesPurged; }
149 void resetContentsTexturesPurged() { m_contentsTexturesPurged = false; }
149 size_t memoryAllocationLimitBytes() const { return m_memoryAllocationLimitBy tes; } 150 size_t memoryAllocationLimitBytes() const { return m_memoryAllocationLimitBy tes; }
150 151
151 void setViewportSize(const IntSize& layoutViewportSize, const IntSize& devic eViewportSize); 152 void setViewportSize(const IntSize& layoutViewportSize, const IntSize& devic eViewportSize);
152 const IntSize& layoutViewportSize() const { return m_layoutViewportSize; } 153 const IntSize& layoutViewportSize() const { return m_layoutViewportSize; }
153 154
154 float deviceScaleFactor() const { return m_deviceScaleFactor; } 155 float deviceScaleFactor() const { return m_deviceScaleFactor; }
155 void setDeviceScaleFactor(float); 156 void setDeviceScaleFactor(float);
156 157
157 float pageScale() const { return m_pageScale; } 158 float pageScale() const { return m_pageScale; }
158 void setPageScaleFactorAndLimits(float pageScale, float minPageScale, float maxPageScale); 159 void setPageScaleFactorAndLimits(float pageScale, float minPageScale, float maxPageScale);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 OwnPtr<CCRenderer> m_layerRenderer; 259 OwnPtr<CCRenderer> m_layerRenderer;
259 OwnPtr<CCLayerImpl> m_rootLayerImpl; 260 OwnPtr<CCLayerImpl> m_rootLayerImpl;
260 CCLayerImpl* m_rootScrollLayerImpl; 261 CCLayerImpl* m_rootScrollLayerImpl;
261 CCLayerImpl* m_currentlyScrollingLayerImpl; 262 CCLayerImpl* m_currentlyScrollingLayerImpl;
262 int m_scrollingLayerIdFromPreviousTree; 263 int m_scrollingLayerIdFromPreviousTree;
263 CCLayerTreeSettings m_settings; 264 CCLayerTreeSettings m_settings;
264 IntSize m_layoutViewportSize; 265 IntSize m_layoutViewportSize;
265 IntSize m_deviceViewportSize; 266 IntSize m_deviceViewportSize;
266 float m_deviceScaleFactor; 267 float m_deviceScaleFactor;
267 bool m_visible; 268 bool m_visible;
268 bool m_contentsTexturesWerePurgedSinceLastCommit; 269 bool m_contentsTexturesPurged;
269 size_t m_memoryAllocationLimitBytes; 270 size_t m_memoryAllocationLimitBytes;
270 271
271 float m_pageScale; 272 float m_pageScale;
272 float m_pageScaleDelta; 273 float m_pageScaleDelta;
273 float m_sentPageScaleDelta; 274 float m_sentPageScaleDelta;
274 float m_minPageScale, m_maxPageScale; 275 float m_minPageScale, m_maxPageScale;
275 276
276 SkColor m_backgroundColor; 277 SkColor m_backgroundColor;
277 bool m_hasTransparentBackground; 278 bool m_hasTransparentBackground;
278 279
(...skipping 16 matching lines...) Expand all
295 // rendering and input event hit testing. 296 // rendering and input event hit testing.
296 CCLayerList m_renderSurfaceLayerList; 297 CCLayerList m_renderSurfaceLayerList;
297 298
298 OwnPtr<CCFrameRateCounter> m_fpsCounter; 299 OwnPtr<CCFrameRateCounter> m_fpsCounter;
299 OwnPtr<CCDebugRectHistory> m_debugRectHistory; 300 OwnPtr<CCDebugRectHistory> m_debugRectHistory;
300 }; 301 };
301 302
302 }; 303 };
303 304
304 #endif 305 #endif
OLDNEW
« no previous file with comments | « no previous file | Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698