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

Side by Side Diff: cc/damage_tracker.h

Issue 11142025: cc: Remove wtf hashmap from damage tracker (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 | « no previous file | cc/damage_tracker.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 CCDamageTracker_h 5 #ifndef CCDamageTracker_h
6 #define CCDamageTracker_h 6 #define CCDamageTracker_h
7 7
8 #include "base/hash_tables.h"
8 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
9 #include "FloatRect.h" 10 #include "FloatRect.h"
10 #include <vector> 11 #include <vector>
11 #include <wtf/HashMap.h>
12 #include <wtf/Vector.h>
13 12
14 namespace WebKit { 13 namespace WebKit {
15 class WebFilterOperations; 14 class WebFilterOperations;
16 } 15 }
17 16
18 namespace cc { 17 namespace cc {
19 18
20 class CCLayerImpl; 19 class CCLayerImpl;
21 class CCRenderSurface; 20 class CCRenderSurface;
22 21
(...skipping 20 matching lines...) Expand all
43 FloatRect removeRectFromCurrentFrame(int layerID, bool& layerIsNew); 42 FloatRect removeRectFromCurrentFrame(int layerID, bool& layerIsNew);
44 void saveRectForNextFrame(int layerID, const FloatRect& targetSpaceRect); 43 void saveRectForNextFrame(int layerID, const FloatRect& targetSpaceRect);
45 44
46 // These helper functions are used only in trackDamageFromActiveLayers(). 45 // These helper functions are used only in trackDamageFromActiveLayers().
47 void extendDamageForLayer(CCLayerImpl*, FloatRect& targetDamageRect); 46 void extendDamageForLayer(CCLayerImpl*, FloatRect& targetDamageRect);
48 void extendDamageForRenderSurface(CCLayerImpl*, FloatRect& targetDamageRect) ; 47 void extendDamageForRenderSurface(CCLayerImpl*, FloatRect& targetDamageRect) ;
49 48
50 // To correctly track exposed regions, two hashtables of rects are maintaine d. 49 // To correctly track exposed regions, two hashtables of rects are maintaine d.
51 // The "current" map is used to compute exposed regions of the current frame , while 50 // The "current" map is used to compute exposed regions of the current frame , while
52 // the "next" map is used to collect layer rects that are used in the next f rame. 51 // the "next" map is used to collect layer rects that are used in the next f rame.
53 typedef HashMap<int, FloatRect> RectMap; 52 typedef base::hash_map<int, FloatRect> RectMap;
54 scoped_ptr<RectMap> m_currentRectHistory; 53 scoped_ptr<RectMap> m_currentRectHistory;
55 scoped_ptr<RectMap> m_nextRectHistory; 54 scoped_ptr<RectMap> m_nextRectHistory;
56 55
57 FloatRect m_currentDamageRect; 56 FloatRect m_currentDamageRect;
58 bool m_forceFullDamageNextUpdate; 57 bool m_forceFullDamageNextUpdate;
59 }; 58 };
60 59
61 } // namespace cc 60 } // namespace cc
62 61
63 #endif // CCDamageTracker_h 62 #endif // CCDamageTracker_h
OLDNEW
« no previous file with comments | « no previous file | cc/damage_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698