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

Side by Side Diff: cc/test/tiled_layer_test_common.h

Issue 11360093: Mark layers that can use LCD text based on layer transform and opacity. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase with TOT, addressed comments Created 8 years, 1 month 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef CC_TEST_TILED_LAYER_TEST_COMMON_H_ 5 #ifndef CC_TEST_TILED_LAYER_TEST_COMMON_H_
6 #define CC_TEST_TILED_LAYER_TEST_COMMON_H_ 6 #define CC_TEST_TILED_LAYER_TEST_COMMON_H_
7 7
8 #include "cc/layer_updater.h" 8 #include "cc/layer_updater.h"
9 #include "cc/prioritized_resource.h" 9 #include "cc/prioritized_resource.h"
10 #include "cc/region.h" 10 #include "cc/region.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 using cc::TiledLayer::invalidateContentRect; 87 using cc::TiledLayer::invalidateContentRect;
88 using cc::TiledLayer::needsIdlePaint; 88 using cc::TiledLayer::needsIdlePaint;
89 using cc::TiledLayer::skipsDraw; 89 using cc::TiledLayer::skipsDraw;
90 using cc::TiledLayer::numPaintedTiles; 90 using cc::TiledLayer::numPaintedTiles;
91 using cc::TiledLayer::idlePaintRect; 91 using cc::TiledLayer::idlePaintRect;
92 92
93 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE; 93 virtual void setNeedsDisplayRect(const gfx::RectF&) OVERRIDE;
94 const gfx::RectF& lastNeedsDisplayRect() const { return m_lastNeedsDisplayRe ct; } 94 const gfx::RectF& lastNeedsDisplayRect() const { return m_lastNeedsDisplayRe ct; }
95 95
96 virtual void setCanUseLCDText(bool) OVERRIDE;
97
96 virtual void setTexturePriorities(const cc::PriorityCalculator&) OVERRIDE; 98 virtual void setTexturePriorities(const cc::PriorityCalculator&) OVERRIDE;
97 99
98 virtual cc::PrioritizedResourceManager* resourceManager() const OVERRIDE; 100 virtual cc::PrioritizedResourceManager* resourceManager() const OVERRIDE;
99 FakeLayerUpdater* fakeLayerUpdater() { return m_fakeUpdater.get(); } 101 FakeLayerUpdater* fakeLayerUpdater() { return m_fakeUpdater.get(); }
100 gfx::RectF updateRect() { return m_updateRect; } 102 gfx::RectF updateRect() { return m_updateRect; }
101 103
102 protected: 104 protected:
103 virtual cc::LayerUpdater* updater() const OVERRIDE; 105 virtual cc::LayerUpdater* updater() const OVERRIDE;
104 virtual void createUpdaterIfNeeded() OVERRIDE { } 106 virtual void createUpdaterIfNeeded() OVERRIDE { }
105 virtual ~FakeTiledLayer(); 107 virtual ~FakeTiledLayer();
(...skipping 14 matching lines...) Expand all
120 virtual float contentsScaleY() const OVERRIDE; 122 virtual float contentsScaleY() const OVERRIDE;
121 virtual void setContentsScale(float) OVERRIDE; 123 virtual void setContentsScale(float) OVERRIDE;
122 124
123 protected: 125 protected:
124 virtual ~FakeTiledLayerWithScaledBounds(); 126 virtual ~FakeTiledLayerWithScaledBounds();
125 gfx::Size m_forcedContentBounds; 127 gfx::Size m_forcedContentBounds;
126 }; 128 };
127 129
128 } 130 }
129 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_ 131 #endif // CC_TEST_TILED_LAYER_TEST_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698