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

Side by Side Diff: chrome/browser/ui/webui/flash_ui.cc

Issue 10389051: Change GPUInfo to handle multiple GPUs. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 #include "chrome/browser/ui/webui/flash_ui.h" 5 #include "chrome/browser/ui/webui/flash_ui.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 AddPair(list, ASCIIToUTF16("Driver display name"), it2->second); 329 AddPair(list, ASCIIToUTF16("Driver display name"), it2->second);
330 } 330 }
331 } 331 }
332 } 332 }
333 } 333 }
334 #endif 334 #endif
335 335
336 AddPair(list, string16(), "--- GPU driver, more information ---"); 336 AddPair(list, string16(), "--- GPU driver, more information ---");
337 AddPair(list, 337 AddPair(list,
338 ASCIIToUTF16("Vendor Id"), 338 ASCIIToUTF16("Vendor Id"),
339 base::StringPrintf("0x%04x", gpu_info.vendor_id)); 339 base::StringPrintf("0x%04x", gpu_info.gpu.vendor_id));
340 AddPair(list, 340 AddPair(list,
341 ASCIIToUTF16("Device Id"), 341 ASCIIToUTF16("Device Id"),
342 base::StringPrintf("0x%04x", gpu_info.device_id)); 342 base::StringPrintf("0x%04x", gpu_info.gpu.device_id));
343 AddPair(list, ASCIIToUTF16("Driver vendor"), gpu_info.driver_vendor); 343 AddPair(list, ASCIIToUTF16("Driver vendor"), gpu_info.driver_vendor);
344 AddPair(list, ASCIIToUTF16("Driver version"), gpu_info.driver_version); 344 AddPair(list, ASCIIToUTF16("Driver version"), gpu_info.driver_version);
345 AddPair(list, ASCIIToUTF16("Driver date"), gpu_info.driver_date); 345 AddPair(list, ASCIIToUTF16("Driver date"), gpu_info.driver_date);
346 AddPair(list, 346 AddPair(list,
347 ASCIIToUTF16("Pixel shader version"), 347 ASCIIToUTF16("Pixel shader version"),
348 gpu_info.pixel_shader_version); 348 gpu_info.pixel_shader_version);
349 AddPair(list, 349 AddPair(list,
350 ASCIIToUTF16("Vertex shader version"), 350 ASCIIToUTF16("Vertex shader version"),
351 gpu_info.vertex_shader_version); 351 gpu_info.vertex_shader_version);
352 AddPair(list, ASCIIToUTF16("GL version"), gpu_info.gl_version); 352 AddPair(list, ASCIIToUTF16("GL version"), gpu_info.gl_version);
(...skipping 24 matching lines...) Expand all
377 // Set up the about:flash source. 377 // Set up the about:flash source.
378 Profile* profile = Profile::FromWebUI(web_ui); 378 Profile* profile = Profile::FromWebUI(web_ui);
379 ChromeURLDataManager::AddDataSource(profile, CreateFlashUIHTMLSource()); 379 ChromeURLDataManager::AddDataSource(profile, CreateFlashUIHTMLSource());
380 } 380 }
381 381
382 // static 382 // static
383 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes() { 383 base::RefCountedMemory* FlashUI::GetFaviconResourceBytes() {
384 // Use the default icon for now. 384 // Use the default icon for now.
385 return NULL; 385 return NULL;
386 } 386 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698