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

Side by Side Diff: cc/resources/managed_tile_state.h

Issue 13065006: cc: Add DISALLOW_COPY_AND_ASSIGN where appropriate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_RESOURCES_MANAGED_TILE_STATE_H_ 5 #ifndef CC_RESOURCES_MANAGED_TILE_STATE_H_
6 #define CC_RESOURCES_MANAGED_TILE_STATE_H_ 6 #define CC_RESOURCES_MANAGED_TILE_STATE_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 solid_color_ = color; 76 solid_color_ = color;
77 } 77 }
78 78
79 Mode mode_; 79 Mode mode_;
80 SkColor solid_color_; 80 SkColor solid_color_;
81 81
82 scoped_ptr<ResourcePool::Resource> resource_; 82 scoped_ptr<ResourcePool::Resource> resource_;
83 bool resource_is_being_initialized_; 83 bool resource_is_being_initialized_;
84 bool can_be_freed_; 84 bool can_be_freed_;
85 bool contents_swizzled_; 85 bool contents_swizzled_;
86
87 DISALLOW_COPY_AND_ASSIGN(DrawingInfo);
86 }; 88 };
87 89
88 90
89 ManagedTileState(); 91 ManagedTileState();
90 ~ManagedTileState(); 92 ~ManagedTileState();
91 scoped_ptr<base::Value> AsValue() const; 93 scoped_ptr<base::Value> AsValue() const;
92 94
93 // Persisted state: valid all the time. 95 // Persisted state: valid all the time.
94 bool can_use_gpu_memory; 96 bool can_use_gpu_memory;
95 bool need_to_gather_pixel_refs; 97 bool need_to_gather_pixel_refs;
(...skipping 12 matching lines...) Expand all
108 // to determine policy. 110 // to determine policy.
109 TileManagerBin gpu_memmgr_stats_bin; 111 TileManagerBin gpu_memmgr_stats_bin;
110 TileResolution resolution; 112 TileResolution resolution;
111 float time_to_needed_in_seconds; 113 float time_to_needed_in_seconds;
112 float distance_to_visible_in_pixels; 114 float distance_to_visible_in_pixels;
113 }; 115 };
114 116
115 } // namespace cc 117 } // namespace cc
116 118
117 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ 119 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698