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

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

Issue 9697001: Merge 109263 - [chromium] Don't let invalidation for next frame prevent tile upload (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1025/
Patch Set: Created 8 years, 9 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 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void setTileSize(const IntSize&); 74 void setTileSize(const IntSize&);
75 void setTextureFormat(GC3Denum textureFormat) { m_textureFormat = textureFor mat; } 75 void setTextureFormat(GC3Denum textureFormat) { m_textureFormat = textureFor mat; }
76 void setBorderTexelOption(CCLayerTilingData::BorderTexelOption); 76 void setBorderTexelOption(CCLayerTilingData::BorderTexelOption);
77 77
78 virtual void createTextureUpdater(const CCLayerTreeHost*) = 0; 78 virtual void createTextureUpdater(const CCLayerTreeHost*) = 0;
79 virtual LayerTextureUpdater* textureUpdater() const = 0; 79 virtual LayerTextureUpdater* textureUpdater() const = 0;
80 80
81 // Set invalidations to be potentially repainted during update(). 81 // Set invalidations to be potentially repainted during update().
82 void invalidateRect(const IntRect& layerRect); 82 void invalidateRect(const IntRect& layerRect);
83 83
84 // Reset state on tiles that will be used for updating the layer.
85 void resetUpdateState();
86
84 // Prepare data needed to update textures that intersect with layerRect. 87 // Prepare data needed to update textures that intersect with layerRect.
85 void prepareToUpdate(const IntRect& layerRect); 88 void prepareToUpdate(const IntRect& layerRect);
86 89
87 // Same as above, but this will try to paint additional surrounding content if idle. 90 // Same as above, but this will try to paint additional surrounding content if idle.
88 void prepareToUpdateIdle(const IntRect& layerRect); 91 void prepareToUpdateIdle(const IntRect& layerRect);
89 92
90 // After preparing an update, returns true if more pre-painting is needed. 93 // After preparing an update, returns true if more pre-painting is needed.
91 bool needsIdlePaint(const IntRect& layerRect); 94 bool needsIdlePaint(const IntRect& layerRect);
92 95
93 bool skipsDraw() const { return m_skipsDraw; } 96 bool skipsDraw() const { return m_skipsDraw; }
(...skipping 29 matching lines...) Expand all
123 LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat; 126 LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat;
124 127
125 TilingOption m_tilingOption; 128 TilingOption m_tilingOption;
126 OwnPtr<CCLayerTilingData> m_tiler; 129 OwnPtr<CCLayerTilingData> m_tiler;
127 }; 130 };
128 131
129 } 132 }
130 #endif // USE(ACCELERATED_COMPOSITING) 133 #endif // USE(ACCELERATED_COMPOSITING)
131 134
132 #endif 135 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/ChangeLog ('k') | Source/WebCore/platform/graphics/chromium/TiledLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698