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

Side by Side Diff: cc/LayerChromium.h

Issue 10916279: Chromium compositor change implementing page-scale driven pinch-zoom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Change m_unpinchedViewportSize and remove unnecessary >1 page scale clamping. 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
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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 5
6 #ifndef LayerChromium_h 6 #ifndef LayerChromium_h
7 #define LayerChromium_h 7 #define LayerChromium_h
8 8
9 #if USE(ACCELERATED_COMPOSITING) 9 #if USE(ACCELERATED_COMPOSITING)
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) { m_layerScrollClient = layerScrollClient; } 149 void setLayerScrollClient(WebKit::WebLayerScrollClient* layerScrollClient) { m_layerScrollClient = layerScrollClient; }
150 150
151 void setDrawCheckerboardForMissingTiles(bool); 151 void setDrawCheckerboardForMissingTiles(bool);
152 bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForM issingTiles; } 152 bool drawCheckerboardForMissingTiles() const { return m_drawCheckerboardForM issingTiles; }
153 153
154 bool forceRenderSurface() const { return m_forceRenderSurface; } 154 bool forceRenderSurface() const { return m_forceRenderSurface; }
155 void setForceRenderSurface(bool); 155 void setForceRenderSurface(bool);
156 156
157 IntSize scrollDelta() const { return IntSize(); } 157 IntSize scrollDelta() const { return IntSize(); }
158 158
159 float pageScaleDelta() const { return 1; } 159 void setImplTransform(const WebKit::WebTransformationMatrix&);
160 const WebKit::WebTransformationMatrix& implTransform() const { return m_impl Transform; }
160 161
161 void setDoubleSided(bool); 162 void setDoubleSided(bool);
162 bool doubleSided() const { return m_doubleSided; } 163 bool doubleSided() const { return m_doubleSided; }
163 164
164 void setPreserves3D(bool preserve3D) { m_preserves3D = preserve3D; } 165 void setPreserves3D(bool preserve3D) { m_preserves3D = preserve3D; }
165 bool preserves3D() const { return m_preserves3D; } 166 bool preserves3D() const { return m_preserves3D; }
166 167
167 void setUseParentBackfaceVisibility(bool useParentBackfaceVisibility) { m_us eParentBackfaceVisibility = useParentBackfaceVisibility; } 168 void setUseParentBackfaceVisibility(bool useParentBackfaceVisibility) { m_us eParentBackfaceVisibility = useParentBackfaceVisibility; }
168 bool useParentBackfaceVisibility() const { return m_useParentBackfaceVisibil ity; } 169 bool useParentBackfaceVisibility() const { return m_useParentBackfaceVisibil ity; }
169 170
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 WebKit::WebTransformationMatrix m_drawTransform; 369 WebKit::WebTransformationMatrix m_drawTransform;
369 WebKit::WebTransformationMatrix m_screenSpaceTransform; 370 WebKit::WebTransformationMatrix m_screenSpaceTransform;
370 bool m_drawTransformIsAnimating; 371 bool m_drawTransformIsAnimating;
371 bool m_screenSpaceTransformIsAnimating; 372 bool m_screenSpaceTransformIsAnimating;
372 373
373 // Uses target surface space. 374 // Uses target surface space.
374 IntRect m_drawableContentRect; 375 IntRect m_drawableContentRect;
375 float m_contentsScale; 376 float m_contentsScale;
376 bool m_boundsContainPageScale; 377 bool m_boundsContainPageScale;
377 378
379 WebKit::WebTransformationMatrix m_implTransform;
380
378 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 381 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
379 WebKit::WebLayerScrollClient* m_layerScrollClient; 382 WebKit::WebLayerScrollClient* m_layerScrollClient;
380 }; 383 };
381 384
382 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*); 385 void sortLayers(Vector<RefPtr<LayerChromium> >::iterator, Vector<RefPtr<LayerChr omium> >::iterator, void*);
383 386
384 } 387 }
385 #endif // USE(ACCELERATED_COMPOSITING) 388 #endif // USE(ACCELERATED_COMPOSITING)
386 389
387 #endif 390 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698