diff options
author | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-21 23:07:00 +0000 |
---|---|---|
committer | piman@chromium.org <piman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-11-21 23:07:00 +0000 |
commit | ec05af504dcd00ae27e30741730383a173411ab6 (patch) | |
tree | bfd8e860f631916ee4ddd8e7d8fd671efaea4e09 /cc | |
parent | 54ed4bdf0f8d95c2001a2bf84d83e365f7f261bf (diff) | |
download | chromium_src-ec05af504dcd00ae27e30741730383a173411ab6.zip chromium_src-ec05af504dcd00ae27e30741730383a173411ab6.tar.gz chromium_src-ec05af504dcd00ae27e30741730383a173411ab6.tar.bz2 |
ui/compositor: use cc/ directly instead of webkit
BUG=159278
Review URL: https://chromiumcodereview.appspot.com/11415089
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@169152 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc')
-rw-r--r-- | cc/active_animation.h | 2 | ||||
-rw-r--r-- | cc/cc.gyp | 6 | ||||
-rw-r--r-- | cc/layer.h | 4 | ||||
-rw-r--r-- | cc/layer_tiling_data.h | 2 | ||||
-rw-r--r-- | cc/proxy.h | 12 |
5 files changed, 18 insertions, 8 deletions
diff --git a/cc/active_animation.h b/cc/active_animation.h index be195bd..413e9f2 100644 --- a/cc/active_animation.h +++ b/cc/active_animation.h @@ -66,7 +66,7 @@ public: double startTime() const { return m_startTime; } void setStartTime(double monotonicTime) { m_startTime = monotonicTime; } - bool hasSetStartTime() const { return m_startTime; } + bool hasSetStartTime() const { return !!m_startTime; } double timeOffset() const { return m_timeOffset; } void setTimeOffset(double monotonicTime) { m_timeOffset = monotonicTime; } @@ -280,6 +280,12 @@ 'sources': [ '<@(cc_source_files)', ], + 'direct_dependent_settings': { + 'include_dirs': [ + # Needed for <public/WebTransformationMatrix.h> in layer.h + '<(webkit_src_dir)/Source/Platform/chromium', + ], + } }, ], } @@ -188,8 +188,8 @@ public: Layer* replicaLayer() { return m_replicaLayer.get(); } const Layer* replicaLayer() const { return m_replicaLayer.get(); } - bool hasMask() const { return m_maskLayer; } - bool hasReplica() const { return m_replicaLayer; } + bool hasMask() const { return !!m_maskLayer; } + bool hasReplica() const { return !!m_replicaLayer; } bool replicaHasMask() const { return m_replicaLayer && (m_maskLayer || m_replicaLayer->m_maskLayer); } // These methods typically need to be overwritten by derived classes. diff --git a/cc/layer_tiling_data.h b/cc/layer_tiling_data.h index 07d3c40..a1d990a 100644 --- a/cc/layer_tiling_data.h +++ b/cc/layer_tiling_data.h @@ -36,7 +36,7 @@ public: gfx::Size tileSize() const; // Change the border texel setting. This may invalidate all existing tiles. void setBorderTexelOption(BorderTexelOption); - bool hasBorderTexels() const { return m_tilingData.border_texels(); } + bool hasBorderTexels() const { return !!m_tilingData.border_texels(); } bool isEmpty() const { return hasEmptyBounds() || !tiles().size(); } @@ -117,26 +117,30 @@ private: #endif }; +#ifndef NDEBUG class DebugScopedSetMainThreadBlocked { public: explicit DebugScopedSetMainThreadBlocked(Proxy* proxy) : m_proxy(proxy) { -#ifndef NDEBUG DCHECK(!m_proxy->isMainThreadBlocked()); m_proxy->setMainThreadBlocked(true); -#endif } ~DebugScopedSetMainThreadBlocked() { -#ifndef NDEBUG DCHECK(m_proxy->isMainThreadBlocked()); m_proxy->setMainThreadBlocked(false); -#endif } private: Proxy* m_proxy; }; +#else +class DebugScopedSetMainThreadBlocked { +public: + explicit DebugScopedSetMainThreadBlocked(Proxy*) { } + ~DebugScopedSetMainThreadBlocked() { } +}; +#endif } |