OLD | NEW |
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 "content/browser/gpu/gpu_data_manager_impl.h" | 5 #include "content/browser/gpu/gpu_data_manager_impl.h" |
6 | 6 |
7 #if defined(OS_MACOSX) | 7 #if defined(OS_MACOSX) |
8 #include <CoreGraphics/CGDisplayConfiguration.h> | 8 #include <CoreGraphics/CGDisplayConfiguration.h> |
9 #endif | 9 #endif |
10 | 10 |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
365 } | 365 } |
366 if (object->gl_renderer.empty()) { | 366 if (object->gl_renderer.empty()) { |
367 changed |= object->gl_renderer != other.gl_renderer; | 367 changed |= object->gl_renderer != other.gl_renderer; |
368 object->gl_renderer = other.gl_renderer; | 368 object->gl_renderer = other.gl_renderer; |
369 } | 369 } |
370 if (object->gl_extensions.empty()) { | 370 if (object->gl_extensions.empty()) { |
371 changed |= object->gl_extensions != other.gl_extensions; | 371 changed |= object->gl_extensions != other.gl_extensions; |
372 object->gl_extensions = other.gl_extensions; | 372 object->gl_extensions = other.gl_extensions; |
373 } | 373 } |
374 object->can_lose_context = other.can_lose_context; | 374 object->can_lose_context = other.can_lose_context; |
| 375 object->software_rendering = other.software_rendering; |
375 #if defined(OS_WIN) | 376 #if defined(OS_WIN) |
376 if (object->dx_diagnostics.values.size() == 0 && | 377 if (object->dx_diagnostics.values.size() == 0 && |
377 object->dx_diagnostics.children.size() == 0) { | 378 object->dx_diagnostics.children.size() == 0) { |
378 object->dx_diagnostics = other.dx_diagnostics; | 379 object->dx_diagnostics = other.dx_diagnostics; |
379 changed = true; | 380 changed = true; |
380 } | 381 } |
381 #endif | 382 #endif |
382 } | 383 } |
383 return changed; | 384 return changed; |
384 } | 385 } |
OLD | NEW |