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

Unified Diff: Source/platform/graphics/Canvas2DLayerManager.cpp

Issue 464273002: Cleanup namespace usage in platform/graphics/[filters/* to skia/*] and platform/graphics/[B-D]* (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 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
Index: Source/platform/graphics/Canvas2DLayerManager.cpp
diff --git a/Source/platform/graphics/Canvas2DLayerManager.cpp b/Source/platform/graphics/Canvas2DLayerManager.cpp
index 4387fce39e27f8e667d40f54f94b376b12e254e2..d4f75755c694fc944b26dfb69692f13c722c3f50 100644
--- a/Source/platform/graphics/Canvas2DLayerManager.cpp
+++ b/Source/platform/graphics/Canvas2DLayerManager.cpp
@@ -28,8 +28,6 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include "public/platform/Platform.h"
#include "wtf/StdLibExtras.h"
-using blink::WebThread;
-
namespace {
enum {
@@ -62,7 +60,7 @@ void Canvas2DLayerManager::init(size_t maxBytesAllocated, size_t targetBytesAllo
m_maxBytesAllocated = maxBytesAllocated;
m_targetBytesAllocated = targetBytesAllocated;
if (m_taskObserverActive) {
- blink::Platform::current()->currentThread()->removeTaskObserver(this);
+ Platform::current()->currentThread()->removeTaskObserver(this);
m_taskObserverActive = false;
}
}
@@ -81,7 +79,7 @@ void Canvas2DLayerManager::didProcessTask()
{
// Called after the script action for the current frame has been processed.
ASSERT(m_taskObserverActive);
- blink::Platform::current()->currentThread()->removeTaskObserver(this);
+ Platform::current()->currentThread()->removeTaskObserver(this);
m_taskObserverActive = false;
Canvas2DLayerBridge* layer = m_layerList.head();
while (layer) {
@@ -105,7 +103,7 @@ void Canvas2DLayerManager::layerDidDraw(Canvas2DLayerBridge* layer)
if (!m_taskObserverActive) {
m_taskObserverActive = true;
// Schedule a call to didProcessTask() after completion of the current script task.
- blink::Platform::current()->currentThread()->addTaskObserver(this);
+ Platform::current()->currentThread()->addTaskObserver(this);
}
}
@@ -154,5 +152,5 @@ bool Canvas2DLayerManager::isInList(Canvas2DLayerBridge* layer) const
return layer->prev() || m_layerList.head() == layer;
}
-}
+} // namespace blink
« no previous file with comments | « Source/platform/graphics/Canvas2DLayerManager.h ('k') | Source/platform/graphics/Canvas2DLayerManagerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698