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

Side by Side Diff: chrome/browser/ui/gtk/task_manager_gtk.h

Issue 10854076: Add GPU memory tab to the task manager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_SCRIPTS_CACHE_COLUMN); 178 CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_SCRIPTS_CACHE_COLUMN);
179 } 179 }
180 180
181 // WebCore CSS Cache sorting callback. 181 // WebCore CSS Cache sorting callback.
182 static gint CompareWebCoreCssCache(GtkTreeModel* model, GtkTreeIter* a, 182 static gint CompareWebCoreCssCache(GtkTreeModel* model, GtkTreeIter* a,
183 GtkTreeIter* b, gpointer task_manager) { 183 GtkTreeIter* b, gpointer task_manager) {
184 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> 184 return reinterpret_cast<TaskManagerGtk*>(task_manager)->
185 CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_CSS_CACHE_COLUMN); 185 CompareImpl(model, a, b, IDS_TASK_MANAGER_WEBCORE_CSS_CACHE_COLUMN);
186 } 186 }
187 187
188 // Video memory sorting callback.
189 static gint CompareVideoMemory(GtkTreeModel* model, GtkTreeIter* a,
190 GtkTreeIter* b, gpointer task_manager) {
191 return reinterpret_cast<TaskManagerGtk*>(task_manager)->
192 CompareImpl(model, a, b, IDS_TASK_MANAGER_VIDEO_MEMORY_COLUMN);
193 }
194
188 // FPS sorting callback. 195 // FPS sorting callback.
189 static gint CompareFPS(GtkTreeModel* model, GtkTreeIter* a, 196 static gint CompareFPS(GtkTreeModel* model, GtkTreeIter* a,
190 GtkTreeIter* b, gpointer task_manager) { 197 GtkTreeIter* b, gpointer task_manager) {
191 return reinterpret_cast<TaskManagerGtk*>(task_manager)-> 198 return reinterpret_cast<TaskManagerGtk*>(task_manager)->
192 CompareImpl(model, a, b, IDS_TASK_MANAGER_FPS_COLUMN); 199 CompareImpl(model, a, b, IDS_TASK_MANAGER_FPS_COLUMN);
193 } 200 }
194 201
195 // Sqlite memory sorting callback. 202 // Sqlite memory sorting callback.
196 static gint CompareSqliteMemoryUsed(GtkTreeModel* model, GtkTreeIter* a, 203 static gint CompareSqliteMemoryUsed(GtkTreeModel* model, GtkTreeIter* a,
197 GtkTreeIter* b, gpointer task_manager) { 204 GtkTreeIter* b, gpointer task_manager) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 // ourselves caused. 249 // ourselves caused.
243 bool ignore_selection_changed_; 250 bool ignore_selection_changed_;
244 251
245 // If true, background resources are rendered with a yellow highlight. 252 // If true, background resources are rendered with a yellow highlight.
246 bool highlight_background_resources_; 253 bool highlight_background_resources_;
247 254
248 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk); 255 DISALLOW_COPY_AND_ASSIGN(TaskManagerGtk);
249 }; 256 };
250 257
251 #endif // CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_ 258 #endif // CHROME_BROWSER_UI_GTK_TASK_MANAGER_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698