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

Side by Side Diff: cc/TiledLayerChromium.cpp

Issue 11035071: [cc] Remove all WTF #includes from CCLayerTreeHost (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 2 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 | « cc/RateLimiter.cpp ('k') | cc/TiledLayerChromiumTest.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 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "config.h" 5 #include "config.h"
6 6
7 #if USE(ACCELERATED_COMPOSITING) 7 #if USE(ACCELERATED_COMPOSITING)
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "TiledLayerChromium.h" 10 #include "TiledLayerChromium.h"
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 continue; 636 continue;
637 if (tileOnlyNeedsPartialUpdate(tile) && layerTreeHost()->request PartialTextureUpdate()) { 637 if (tileOnlyNeedsPartialUpdate(tile) && layerTreeHost()->request PartialTextureUpdate()) {
638 tile->partialUpdate = true; 638 tile->partialUpdate = true;
639 continue; 639 continue;
640 } 640 }
641 641
642 IntRect tileRect = m_tiler->tileRect(tile); 642 IntRect tileRect = m_tiler->tileRect(tile);
643 tile->dirtyRect = tileRect; 643 tile->dirtyRect = tileRect;
644 LayerTextureUpdater::Texture* backBuffer = tile->texture(); 644 LayerTextureUpdater::Texture* backBuffer = tile->texture();
645 setPriorityForTexture(visibleContentRect(), tile->dirtyRect, dra wsToRoot, smallAnimatedLayer, backBuffer->texture()); 645 setPriorityForTexture(visibleContentRect(), tile->dirtyRect, dra wsToRoot, smallAnimatedLayer, backBuffer->texture());
646 OwnPtr<CCPrioritizedTexture> frontBuffer = CCPrioritizedTexture: :create(backBuffer->texture()->textureManager(), 646 scoped_ptr<CCPrioritizedTexture> frontBuffer = CCPrioritizedText ure::create(backBuffer->texture()->textureManager(),
647 backBuffer->texture()->size(), 647 backBuffer->texture()->size(),
648 backBuffer->texture()->format()); 648 backBuffer->texture()->format());
649 // Swap backBuffer into frontBuffer and add it to delete after c ommit queue. 649 // Swap backBuffer into frontBuffer and add it to delete after c ommit queue.
650 backBuffer->swapTextureWith(frontBuffer); 650 backBuffer->swapTextureWith(frontBuffer);
651 layerTreeHost()->deleteTextureAfterCommit(frontBuffer.release()) ; 651 layerTreeHost()->deleteTextureAfterCommit(frontBuffer.Pass());
652 } 652 }
653 } 653 }
654 } 654 }
655 655
656 // Now update priorities on all tiles we have in the layer, no matter where they are. 656 // Now update priorities on all tiles we have in the layer, no matter where they are.
657 for (CCLayerTilingData::TileMap::const_iterator iter = m_tiler->tiles().begi n(); iter != m_tiler->tiles().end(); ++iter) { 657 for (CCLayerTilingData::TileMap::const_iterator iter = m_tiler->tiles().begi n(); iter != m_tiler->tiles().end(); ++iter) {
658 #if WTF_NEW_HASHMAP_ITERATORS_INTERFACE 658 #if WTF_NEW_HASHMAP_ITERATORS_INTERFACE
659 UpdatableTile* tile = static_cast<UpdatableTile*>(iter->value.get()); 659 UpdatableTile* tile = static_cast<UpdatableTile*>(iter->value.get());
660 #else 660 #else
661 UpdatableTile* tile = static_cast<UpdatableTile*>(iter->second.get()); 661 UpdatableTile* tile = static_cast<UpdatableTile*>(iter->second.get());
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
811 prepaintRect.inflateX(m_tiler->tileSize().width()); 811 prepaintRect.inflateX(m_tiler->tileSize().width());
812 prepaintRect.inflateY(m_tiler->tileSize().height() * 2); 812 prepaintRect.inflateY(m_tiler->tileSize().height() * 2);
813 IntRect contentRect(IntPoint::zero(), contentBounds()); 813 IntRect contentRect(IntPoint::zero(), contentBounds());
814 prepaintRect.intersect(contentRect); 814 prepaintRect.intersect(contentRect);
815 815
816 return prepaintRect; 816 return prepaintRect;
817 } 817 }
818 818
819 } 819 }
820 #endif // USE(ACCELERATED_COMPOSITING) 820 #endif // USE(ACCELERATED_COMPOSITING)
OLDNEW
« no previous file with comments | « cc/RateLimiter.cpp ('k') | cc/TiledLayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698