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

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

Issue 11276060: Pass accurate contentsScale to LayerImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased 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
« no previous file with comments | « cc/scrollbar_layer_impl.cc ('k') | cc/test/tiled_layer_test_common.cc » ('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 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 CCTiledLayerTestCommon_h 5 #ifndef CCTiledLayerTestCommon_h
6 #define CCTiledLayerTestCommon_h 6 #define CCTiledLayerTestCommon_h
7 7
8 #include "IntRect.h" 8 #include "IntRect.h"
9 #include "IntSize.h" 9 #include "IntSize.h"
10 #include "Region.h" 10 #include "Region.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 cc::PrioritizedTextureManager* m_textureManager; 109 cc::PrioritizedTextureManager* m_textureManager;
110 cc::FloatRect m_lastNeedsDisplayRect; 110 cc::FloatRect m_lastNeedsDisplayRect;
111 }; 111 };
112 112
113 class FakeTiledLayerWithScaledBounds : public FakeTiledLayer { 113 class FakeTiledLayerWithScaledBounds : public FakeTiledLayer {
114 public: 114 public:
115 explicit FakeTiledLayerWithScaledBounds(cc::PrioritizedTextureManager*); 115 explicit FakeTiledLayerWithScaledBounds(cc::PrioritizedTextureManager*);
116 116
117 void setContentBounds(const cc::IntSize& contentBounds) { m_forcedContentBou nds = contentBounds; } 117 void setContentBounds(const cc::IntSize& contentBounds) { m_forcedContentBou nds = contentBounds; }
118 virtual cc::IntSize contentBounds() const OVERRIDE; 118 virtual cc::IntSize contentBounds() const OVERRIDE;
119 virtual float contentsScaleX() const OVERRIDE;
120 virtual float contentsScaleY() const OVERRIDE;
121 virtual void setContentsScale(float) OVERRIDE;
119 122
120 protected: 123 protected:
121 virtual ~FakeTiledLayerWithScaledBounds(); 124 virtual ~FakeTiledLayerWithScaledBounds();
122 cc::IntSize m_forcedContentBounds; 125 cc::IntSize m_forcedContentBounds;
123 }; 126 };
124 127
125 } 128 }
126 #endif // CCTiledLayerTestCommon_h 129 #endif // CCTiledLayerTestCommon_h
OLDNEW
« no previous file with comments | « cc/scrollbar_layer_impl.cc ('k') | cc/test/tiled_layer_test_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698