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

Side by Side Diff: GraphicsLayer.h

Issue 14333021: Merge 148856 "Disable solid background color optimization for composited layers." (Closed) Base URL: svn://svn.chromium.org/blink/branches/chromium/1453/Source/WebCore/platform/graphics/
Patch Set: Created 7 years, 8 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 | chromium/GraphicsLayerChromium.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 virtual double backingStoreMemoryEstimate() const; 417 virtual double backingStoreMemoryEstimate() const;
418 418
419 bool usingTiledBacking() const { return m_usingTiledBacking; } 419 bool usingTiledBacking() const { return m_usingTiledBacking; }
420 virtual TiledBacking* tiledBacking() const { return 0; } 420 virtual TiledBacking* tiledBacking() const { return 0; }
421 421
422 void resetTrackedRepaints(); 422 void resetTrackedRepaints();
423 void addRepaintRect(const FloatRect&); 423 void addRepaintRect(const FloatRect&);
424 424
425 static bool supportsBackgroundColorContent() 425 static bool supportsBackgroundColorContent()
426 { 426 {
427 #if USE(CA) || USE(TEXTURE_MAPPER) || PLATFORM(CHROMIUM)
428 return true;
429 #else
430 return false; 427 return false;
431 #endif
432 } 428 }
433 429
434 void updateDebugIndicators(); 430 void updateDebugIndicators();
435 431
436 virtual void reportMemoryUsage(MemoryObjectInfo*) const; 432 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
437 433
438 protected: 434 protected:
439 // Should be called from derived class destructors. Should call willBeDestro yed() on super. 435 // Should be called from derived class destructors. Should call willBeDestro yed() on super.
440 virtual void willBeDestroyed(); 436 virtual void willBeDestroyed();
441 437
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } // namespace WebCore 525 } // namespace WebCore
530 526
531 #ifndef NDEBUG 527 #ifndef NDEBUG
532 // Outside the WebCore namespace for ease of invocation from gdb. 528 // Outside the WebCore namespace for ease of invocation from gdb.
533 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); 529 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer);
534 #endif 530 #endif
535 531
536 #endif // USE(ACCELERATED_COMPOSITING) 532 #endif // USE(ACCELERATED_COMPOSITING)
537 533
538 #endif // GraphicsLayer_h 534 #endif // GraphicsLayer_h
OLDNEW
« no previous file with comments | « no previous file | chromium/GraphicsLayerChromium.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698