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

Side by Side Diff: cc/layer.h

Issue 11048044: cc: Switch to Chromium DCHECKs and LOGs (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase 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
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 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "CCLayerAnimationController.h" 10 #include "CCLayerAnimationController.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 void clearRenderSurface() { m_renderSurface.reset(); } 196 void clearRenderSurface() { m_renderSurface.reset(); }
197 RenderSurfaceChromium* renderSurface() const { return m_renderSurface.get(); } 197 RenderSurfaceChromium* renderSurface() const { return m_renderSurface.get(); }
198 void createRenderSurface(); 198 void createRenderSurface();
199 199
200 float drawOpacity() const { return m_drawOpacity; } 200 float drawOpacity() const { return m_drawOpacity; }
201 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; } 201 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; }
202 202
203 bool drawOpacityIsAnimating() const { return m_drawOpacityIsAnimating; } 203 bool drawOpacityIsAnimating() const { return m_drawOpacityIsAnimating; }
204 void setDrawOpacityIsAnimating(bool drawOpacityIsAnimating) { m_drawOpacityI sAnimating = drawOpacityIsAnimating; } 204 void setDrawOpacityIsAnimating(bool drawOpacityIsAnimating) { m_drawOpacityI sAnimating = drawOpacityIsAnimating; }
205 205
206 LayerChromium* renderTarget() const { ASSERT(!m_renderTarget || m_renderTarg et->renderSurface()); return m_renderTarget; } 206 LayerChromium* renderTarget() const { CC_DCHECK(!m_renderTarget || m_renderT arget->renderSurface()); return m_renderTarget; }
207 void setRenderTarget(LayerChromium* target) { m_renderTarget = target; } 207 void setRenderTarget(LayerChromium* target) { m_renderTarget = target; }
208 208
209 bool drawTransformIsAnimating() const { return m_drawTransformIsAnimating; } 209 bool drawTransformIsAnimating() const { return m_drawTransformIsAnimating; }
210 void setDrawTransformIsAnimating(bool animating) { m_drawTransformIsAnimatin g = animating; } 210 void setDrawTransformIsAnimating(bool animating) { m_drawTransformIsAnimatin g = animating; }
211 bool screenSpaceTransformIsAnimating() const { return m_screenSpaceTransform IsAnimating; } 211 bool screenSpaceTransformIsAnimating() const { return m_screenSpaceTransform IsAnimating; }
212 void setScreenSpaceTransformIsAnimating(bool animating) { m_screenSpaceTrans formIsAnimating = animating; } 212 void setScreenSpaceTransformIsAnimating(bool animating) { m_screenSpaceTrans formIsAnimating = animating; }
213 213
214 // This moves from layer space, with origin in the center to target space wi th origin in the top left. 214 // This moves from layer space, with origin in the center to target space wi th origin in the top left.
215 // That is, it converts from logical, non-page-scaled, to target pixels (and if the target is the 215 // That is, it converts from logical, non-page-scaled, to target pixels (and if the target is the
216 // root render surface, then this converts to physical pixels). 216 // root render surface, then this converts to physical pixels).
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 WebKit::WebTransformationMatrix m_implTransform; 377 WebKit::WebTransformationMatrix m_implTransform;
378 378
379 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; 379 WebKit::WebAnimationDelegate* m_layerAnimationDelegate;
380 WebKit::WebLayerScrollClient* m_layerScrollClient; 380 WebKit::WebLayerScrollClient* m_layerScrollClient;
381 }; 381 };
382 382
383 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto r<scoped_refptr<LayerChromium> >::iterator, void*); 383 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto r<scoped_refptr<LayerChromium> >::iterator, void*);
384 384
385 } 385 }
386 #endif 386 #endif
OLDNEW
« no previous file with comments | « cc/keyframed_animation_curve.cc ('k') | cc/layer.cc » ('j') | cc/yuv_video_draw_quad.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698