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

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

Issue 10146014: Merge 113677 - [chromium] Viewport is not filled when out of texture memory on mac (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1084/
Patch Set: Created 8 years, 8 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 * 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
11 * documentation and/or other materials provided with the distribution. 11 * documentation and/or other materials provided with the distribution.
12 * 12 *
13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN Y 13 * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND AN Y
14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 14 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 15 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
16 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN Y 16 * DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR AN Y
17 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 17 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
18 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 18 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O N 19 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND O N
20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 20 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 21 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 #ifndef CCLayerTreeHost_h 25 #ifndef CCLayerTreeHost_h
26 #define CCLayerTreeHost_h 26 #define CCLayerTreeHost_h
27 27
28 #include "Color.h"
28 #include "GraphicsTypes3D.h" 29 #include "GraphicsTypes3D.h"
29 #include "IntRect.h" 30 #include "IntRect.h"
30 #include "LayerChromium.h" 31 #include "LayerChromium.h"
31 #include "RateLimiter.h" 32 #include "RateLimiter.h"
32 #include "TransformationMatrix.h" 33 #include "TransformationMatrix.h"
33 #include "cc/CCAnimationEvents.h" 34 #include "cc/CCAnimationEvents.h"
34 #include "cc/CCLayerTreeHostCommon.h" 35 #include "cc/CCLayerTreeHostCommon.h"
35 #include "cc/CCProxy.h" 36 #include "cc/CCProxy.h"
36 37
37 #include <limits> 38 #include <limits>
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void setRootLayer(PassRefPtr<LayerChromium>); 195 void setRootLayer(PassRefPtr<LayerChromium>);
195 196
196 const CCSettings& settings() const { return m_settings; } 197 const CCSettings& settings() const { return m_settings; }
197 198
198 void setViewportSize(const IntSize&); 199 void setViewportSize(const IntSize&);
199 200
200 const IntSize& viewportSize() const { return m_viewportSize; } 201 const IntSize& viewportSize() const { return m_viewportSize; }
201 202
202 void setPageScaleFactorAndLimits(float pageScaleFactor, float minPageScaleFa ctor, float maxPageScaleFactor); 203 void setPageScaleFactorAndLimits(float pageScaleFactor, float minPageScaleFa ctor, float maxPageScaleFactor);
203 204
205 void setBackgroundColor(const Color& color) { m_backgroundColor = color; }
206
204 TextureManager* contentsTextureManager() const; 207 TextureManager* contentsTextureManager() const;
205 208
206 bool visible() const { return m_visible; } 209 bool visible() const { return m_visible; }
207 void setVisible(bool); 210 void setVisible(bool);
208 211
209 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor, float scale, double durationSec); 212 void startPageScaleAnimation(const IntSize& targetPosition, bool useAnchor, float scale, double durationSec);
210 213
211 void updateCompositorResources(GraphicsContext3D*, CCTextureUpdater&); 214 void updateCompositorResources(GraphicsContext3D*, CCTextureUpdater&);
212 void applyScrollAndScale(const CCScrollAndScaleSet&); 215 void applyScrollAndScale(const CCScrollAndScaleSet&);
213 void startRateLimiter(GraphicsContext3D*); 216 void startRateLimiter(GraphicsContext3D*);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 CCSettings m_settings; 266 CCSettings m_settings;
264 267
265 IntSize m_viewportSize; 268 IntSize m_viewportSize;
266 bool m_visible; 269 bool m_visible;
267 typedef HashMap<GraphicsContext3D*, RefPtr<RateLimiter> > RateLimiterMap; 270 typedef HashMap<GraphicsContext3D*, RefPtr<RateLimiter> > RateLimiterMap;
268 RateLimiterMap m_rateLimiters; 271 RateLimiterMap m_rateLimiters;
269 272
270 float m_pageScaleFactor; 273 float m_pageScaleFactor;
271 float m_minPageScaleFactor, m_maxPageScaleFactor; 274 float m_minPageScaleFactor, m_maxPageScaleFactor;
272 bool m_triggerIdlePaints; 275 bool m_triggerIdlePaints;
276 Color m_backgroundColor;
273 277
274 TextureList m_deleteTextureAfterCommitList; 278 TextureList m_deleteTextureAfterCommitList;
275 size_t m_partialTextureUpdateRequests; 279 size_t m_partialTextureUpdateRequests;
276 static bool s_needsFilterContext; 280 static bool s_needsFilterContext;
277 }; 281 };
278 282
279 } 283 }
280 284
281 #endif 285 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698