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

Side by Side Diff: cc/render_surface.cc

Issue 11189011: cc: Remove the temporary header files that aren't prefixed with CC* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « cc/rate_limiter.cc ('k') | cc/resource_provider.h » ('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 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 #include "config.h" 5 #include "config.h"
6 6
7 #include "RenderSurfaceChromium.h" 7 #include "cc/render_surface.h"
8 8
9 #include "CCMathUtil.h" 9 #include "CCMathUtil.h"
10 #include "LayerChromium.h" 10 #include "cc/layer.h"
11 #include <public/WebTransformationMatrix.h> 11 #include <public/WebTransformationMatrix.h>
12 12
13 using WebKit::WebTransformationMatrix; 13 using WebKit::WebTransformationMatrix;
14 14
15 namespace cc { 15 namespace cc {
16 16
17 RenderSurfaceChromium::RenderSurfaceChromium(LayerChromium* owningLayer) 17 RenderSurfaceChromium::RenderSurfaceChromium(LayerChromium* owningLayer)
18 : m_owningLayer(owningLayer) 18 : m_owningLayer(owningLayer)
19 , m_drawOpacity(1) 19 , m_drawOpacity(1)
20 , m_drawOpacityIsAnimating(false) 20 , m_drawOpacityIsAnimating(false)
21 , m_targetSurfaceTransformsAreAnimating(false) 21 , m_targetSurfaceTransformsAreAnimating(false)
22 , m_screenSpaceTransformsAreAnimating(false) 22 , m_screenSpaceTransformsAreAnimating(false)
23 , m_nearestAncestorThatMovesPixels(0) 23 , m_nearestAncestorThatMovesPixels(0)
24 { 24 {
25 } 25 }
26 26
27 RenderSurfaceChromium::~RenderSurfaceChromium() 27 RenderSurfaceChromium::~RenderSurfaceChromium()
28 { 28 {
29 } 29 }
30 30
31 FloatRect RenderSurfaceChromium::drawableContentRect() const 31 FloatRect RenderSurfaceChromium::drawableContentRect() const
32 { 32 {
33 FloatRect drawableContentRect = CCMathUtil::mapClippedRect(m_drawTransform, m_contentRect); 33 FloatRect drawableContentRect = CCMathUtil::mapClippedRect(m_drawTransform, m_contentRect);
34 if (m_owningLayer->hasReplica()) 34 if (m_owningLayer->hasReplica())
35 drawableContentRect.unite(CCMathUtil::mapClippedRect(m_replicaDrawTransf orm, m_contentRect)); 35 drawableContentRect.unite(CCMathUtil::mapClippedRect(m_replicaDrawTransf orm, m_contentRect));
36 return drawableContentRect; 36 return drawableContentRect;
37 } 37 }
38 38
39 } 39 }
OLDNEW
« no previous file with comments | « cc/rate_limiter.cc ('k') | cc/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698