| OLD | NEW |
| 1 // TODO(jam): move this file to src/content once we have an interface that the |
| 2 // embedder provides. We can then use it to get the resource and resize the |
| 3 // window. |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 4 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 5 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 6 // found in the LICENSE file. |
| 4 | 7 |
| 5 #include "chrome/browser/gpu_process_host_ui_shim.h" | 8 #include "chrome/browser/gpu_process_host_ui_shim.h" |
| 6 | 9 |
| 7 #include "app/app_switches.h" | 10 #include "app/app_switches.h" |
| 8 #include "app/gfx/gl/gl_implementation.h" | 11 #include "app/gfx/gl/gl_implementation.h" |
| 9 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 10 #include "base/id_map.h" | 13 #include "base/id_map.h" |
| (...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 589 static const base::StringPiece gpu_blacklist_json( | 592 static const base::StringPiece gpu_blacklist_json( |
| 590 ResourceBundle::GetSharedInstance().GetRawDataResource( | 593 ResourceBundle::GetSharedInstance().GetRawDataResource( |
| 591 IDR_GPU_BLACKLIST)); | 594 IDR_GPU_BLACKLIST)); |
| 592 gpu_blacklist_.reset(new GpuBlacklist()); | 595 gpu_blacklist_.reset(new GpuBlacklist()); |
| 593 if (gpu_blacklist_->LoadGpuBlacklist(gpu_blacklist_json.as_string(), true)) | 596 if (gpu_blacklist_->LoadGpuBlacklist(gpu_blacklist_json.as_string(), true)) |
| 594 return true; | 597 return true; |
| 595 gpu_blacklist_.reset(NULL); | 598 gpu_blacklist_.reset(NULL); |
| 596 return false; | 599 return false; |
| 597 } | 600 } |
| 598 | 601 |
| OLD | NEW |