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

Side by Side Diff: cc/layer_tree_host.h

Issue 11308153: Migrate most of cc/ from WebKit::WebTransformationMatrix to gfx::Transform (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 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 #ifndef CC_LAYER_TREE_HOST_H_ 5 #ifndef CC_LAYER_TREE_HOST_H_
6 #define CC_LAYER_TREE_HOST_H_ 6 #define CC_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 195
196 PrioritizedResourceManager* contentsTextureManager() const; 196 PrioritizedResourceManager* contentsTextureManager() const;
197 197
198 bool visible() const { return m_visible; } 198 bool visible() const { return m_visible; }
199 void setVisible(bool); 199 void setVisible(bool);
200 200
201 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo at scale, base::TimeDelta duration); 201 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo at scale, base::TimeDelta duration);
202 202
203 void applyScrollAndScale(const ScrollAndScaleSet&); 203 void applyScrollAndScale(const ScrollAndScaleSet&);
204 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF&) const; 204 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF&) const;
205 void setImplTransform(const WebKit::WebTransformationMatrix&); 205 void setImplTransform(const gfx::Transform&);
206 206
207 void startRateLimiter(WebKit::WebGraphicsContext3D*); 207 void startRateLimiter(WebKit::WebGraphicsContext3D*);
208 void stopRateLimiter(WebKit::WebGraphicsContext3D*); 208 void stopRateLimiter(WebKit::WebGraphicsContext3D*);
209 209
210 // RateLimitClient implementation 210 // RateLimitClient implementation
211 virtual void rateLimit() OVERRIDE; 211 virtual void rateLimit() OVERRIDE;
212 212
213 bool bufferedUpdates(); 213 bool bufferedUpdates();
214 bool requestPartialTextureUpdate(); 214 bool requestPartialTextureUpdate();
215 215
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 gfx::Size m_deviceViewportSize; 278 gfx::Size m_deviceViewportSize;
279 float m_deviceScaleFactor; 279 float m_deviceScaleFactor;
280 280
281 bool m_visible; 281 bool m_visible;
282 282
283 typedef base::hash_map<WebKit::WebGraphicsContext3D*, scoped_refptr<RateLimi ter> > RateLimiterMap; 283 typedef base::hash_map<WebKit::WebGraphicsContext3D*, scoped_refptr<RateLimi ter> > RateLimiterMap;
284 RateLimiterMap m_rateLimiters; 284 RateLimiterMap m_rateLimiters;
285 285
286 float m_pageScaleFactor; 286 float m_pageScaleFactor;
287 float m_minPageScaleFactor, m_maxPageScaleFactor; 287 float m_minPageScaleFactor, m_maxPageScaleFactor;
288 WebKit::WebTransformationMatrix m_implTransform; 288 gfx::Transform m_implTransform;
289 bool m_triggerIdleUpdates; 289 bool m_triggerIdleUpdates;
290 290
291 SkColor m_backgroundColor; 291 SkColor m_backgroundColor;
292 bool m_hasTransparentBackground; 292 bool m_hasTransparentBackground;
293 293
294 typedef ScopedPtrVector<PrioritizedResource> TextureList; 294 typedef ScopedPtrVector<PrioritizedResource> TextureList;
295 size_t m_partialTextureUpdateRequests; 295 size_t m_partialTextureUpdateRequests;
296 296
297 static bool s_needsFilterContext; 297 static bool s_needsFilterContext;
298 298
299 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 299 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
300 }; 300 };
301 301
302 } // namespace cc 302 } // namespace cc
303 303
304 #endif // CC_LAYER_TREE_HOST_H_ 304 #endif // CC_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698