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

Side by Side Diff: content/browser/gpu/gpu_data_manager_impl.cc

Issue 9655017: Implement WebKitPlatformSupport::canAccelerate2dCanvas (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: move canAccelerate.. call next to createOffscreenGraphicsContext3D call Created 8 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
« no previous file with comments | « no previous file | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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 }
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/gpu_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698