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

Unified Diff: cc/CanvasLayerTextureUpdater.cpp

Issue 10914268: Change cc files from namespace WebCore to cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/CanvasLayerTextureUpdater.h ('k') | cc/ContentLayerChromium.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CanvasLayerTextureUpdater.cpp
diff --git a/cc/CanvasLayerTextureUpdater.cpp b/cc/CanvasLayerTextureUpdater.cpp
index dd63b9775dcc85b45a840b439c40f91c0b5ec418..eae5d16a6b00457360ab642e005f7af1e760f030 100644
--- a/cc/CanvasLayerTextureUpdater.cpp
+++ b/cc/CanvasLayerTextureUpdater.cpp
@@ -19,7 +19,7 @@
#include "TraceEvent.h"
#include <wtf/CurrentTime.h>
-namespace WebCore {
+namespace cc {
CanvasLayerTextureUpdater::CanvasLayerTextureUpdater(PassOwnPtr<LayerPainterChromium> painter)
: m_painter(painter)
@@ -34,12 +34,12 @@ void CanvasLayerTextureUpdater::paintContents(SkCanvas* canvas, const IntRect& c
{
TRACE_EVENT0("cc", "CanvasLayerTextureUpdater::paintContents");
canvas->save();
- canvas->translate(WebCoreFloatToSkScalar(-contentRect.x()), WebCoreFloatToSkScalar(-contentRect.y()));
+ canvas->translate(CCFloatToSkScalar(-contentRect.x()), CCFloatToSkScalar(-contentRect.y()));
IntRect layerRect = contentRect;
if (contentsWidthScale != 1 || contentsHeightScale != 1) {
- canvas->scale(WebCoreFloatToSkScalar(contentsWidthScale), WebCoreFloatToSkScalar(contentsHeightScale));
+ canvas->scale(CCFloatToSkScalar(contentsWidthScale), CCFloatToSkScalar(contentsHeightScale));
FloatRect rect = contentRect;
rect.scale(1 / contentsWidthScale, 1 / contentsHeightScale);
@@ -66,5 +66,5 @@ void CanvasLayerTextureUpdater::paintContents(SkCanvas* canvas, const IntRect& c
m_contentRect = contentRect;
}
-} // namespace WebCore
+} // namespace cc
#endif // USE(ACCELERATED_COMPOSITING)
« no previous file with comments | « cc/CanvasLayerTextureUpdater.h ('k') | cc/ContentLayerChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698