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

Side by Side Diff: cc/tiled_layer.h

Issue 11150025: Patch from https://codereview.chromium.org/11111005/ without actual file deletes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/tile_draw_quad.cc ('k') | cc/tiled_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef TiledLayerChromium_h 5 #ifndef TiledLayerChromium_h
6 #define TiledLayerChromium_h 6 #define TiledLayerChromium_h
7 7
8 #include "CCLayerTilingData.h" 8 #include "CCLayerTilingData.h"
9 #include "LayerChromium.h" 9 #include "LayerChromium.h"
10 #include "LayerTextureUpdater.h" 10 #include "LayerTextureUpdater.h"
(...skipping 28 matching lines...) Expand all
39 39
40 protected: 40 protected:
41 TiledLayerChromium(); 41 TiledLayerChromium();
42 virtual ~TiledLayerChromium(); 42 virtual ~TiledLayerChromium();
43 43
44 void updateTileSizeAndTilingOption(); 44 void updateTileSizeAndTilingOption();
45 void updateBounds(); 45 void updateBounds();
46 46
47 // Exposed to subclasses for testing. 47 // Exposed to subclasses for testing.
48 void setTileSize(const IntSize&); 48 void setTileSize(const IntSize&);
49 void setTextureFormat(GC3Denum textureFormat) { m_textureFormat = textureFor mat; } 49 void setTextureFormat(GLenum textureFormat) { m_textureFormat = textureForma t; }
50 void setBorderTexelOption(CCLayerTilingData::BorderTexelOption); 50 void setBorderTexelOption(CCLayerTilingData::BorderTexelOption);
51 void setSampledTexelFormat(LayerTextureUpdater::SampledTexelFormat sampledTe xelFormat) { m_sampledTexelFormat = sampledTexelFormat; } 51 void setSampledTexelFormat(LayerTextureUpdater::SampledTexelFormat sampledTe xelFormat) { m_sampledTexelFormat = sampledTexelFormat; }
52 size_t numPaintedTiles() { return m_tiler->tiles().size(); } 52 size_t numPaintedTiles() { return m_tiler->tiles().size(); }
53 53
54 virtual LayerTextureUpdater* textureUpdater() const = 0; 54 virtual LayerTextureUpdater* textureUpdater() const = 0;
55 virtual void createTextureUpdaterIfNeeded() = 0; 55 virtual void createTextureUpdaterIfNeeded() = 0;
56 56
57 // Set invalidations to be potentially repainted during update(). 57 // Set invalidations to be potentially repainted during update().
58 void invalidateContentRect(const IntRect& contentRect); 58 void invalidateContentRect(const IntRect& contentRect);
59 59
(...skipping 21 matching lines...) Expand all
81 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott om, const CCOcclusionTracker*); 81 void markOcclusionsAndRequestTextures(int left, int top, int right, int bott om, const CCOcclusionTracker*);
82 82
83 bool updateTiles(int left, int top, int right, int bottom, CCTextureUpdateQu eue&, const CCOcclusionTracker*, CCRenderingStats&, bool& didPaint); 83 bool updateTiles(int left, int top, int right, int bottom, CCTextureUpdateQu eue&, const CCOcclusionTracker*, CCRenderingStats&, bool& didPaint);
84 bool haveTexturesForTiles(int left, int top, int right, int bottom, bool ign oreOcclusions); 84 bool haveTexturesForTiles(int left, int top, int right, int bottom, bool ign oreOcclusions);
85 IntRect markTilesForUpdate(int left, int top, int right, int bottom, bool ig noreOcclusions); 85 IntRect markTilesForUpdate(int left, int top, int right, int bottom, bool ig noreOcclusions);
86 void updateTileTextures(const IntRect& paintRect, int left, int top, int rig ht, int bottom, CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingSta ts&); 86 void updateTileTextures(const IntRect& paintRect, int left, int top, int rig ht, int bottom, CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingSta ts&);
87 87
88 UpdatableTile* tileAt(int, int) const; 88 UpdatableTile* tileAt(int, int) const;
89 UpdatableTile* createTile(int, int); 89 UpdatableTile* createTile(int, int);
90 90
91 GC3Denum m_textureFormat; 91 GLenum m_textureFormat;
92 bool m_skipsDraw; 92 bool m_skipsDraw;
93 bool m_failedUpdate; 93 bool m_failedUpdate;
94 LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat; 94 LayerTextureUpdater::SampledTexelFormat m_sampledTexelFormat;
95 95
96 TilingOption m_tilingOption; 96 TilingOption m_tilingOption;
97 OwnPtr<CCLayerTilingData> m_tiler; 97 OwnPtr<CCLayerTilingData> m_tiler;
98 }; 98 };
99 99
100 } 100 }
101 #endif 101 #endif
OLDNEW
« no previous file with comments | « cc/tile_draw_quad.cc ('k') | cc/tiled_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698