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

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

Issue 476683002: Cleanup namespace usage in platform/graphics/[G-S]* (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/OpaqueRectTrackingContentLayerDelegate.cpp
diff --git a/Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp b/Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp
index 5d37bf26821315cd59c5911e9fe1f6e460b97550..703c45c7f25299f97586f9d9fe781f04147c80a9 100644
--- a/Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp
+++ b/Source/platform/graphics/OpaqueRectTrackingContentLayerDelegate.cpp
@@ -33,9 +33,6 @@
#include "public/platform/WebFloatRect.h"
#include "public/platform/WebRect.h"
-using blink::WebFloatRect;
-using blink::WebRect;
-
namespace blink {
OpaqueRectTrackingContentLayerDelegate::OpaqueRectTrackingContentLayerDelegate(GraphicsContextPainter* painter)
@@ -50,14 +47,14 @@ OpaqueRectTrackingContentLayerDelegate::~OpaqueRectTrackingContentLayerDelegate(
void OpaqueRectTrackingContentLayerDelegate::paintContents(
SkCanvas* canvas, const WebRect& clip, bool canPaintLCDText, WebFloatRect& opaque,
- blink::WebContentLayerClient::GraphicsContextStatus contextStatus)
+ WebContentLayerClient::GraphicsContextStatus contextStatus)
{
static const unsigned char* annotationsEnabled = 0;
if (UNLIKELY(!annotationsEnabled))
annotationsEnabled = EventTracer::getTraceCategoryEnabledFlag(TRACE_DISABLED_BY_DEFAULT("blink.graphics_context_annotations"));
GraphicsContext context(canvas,
- contextStatus == blink::WebContentLayerClient::GraphicsContextEnabled ? GraphicsContext::NothingDisabled : GraphicsContext::FullyDisabled);
+ contextStatus == WebContentLayerClient::GraphicsContextEnabled ? GraphicsContext::NothingDisabled : GraphicsContext::FullyDisabled);
context.setRegionTrackingMode(m_opaque ? GraphicsContext::RegionTrackingDisabled : GraphicsContext::RegionTrackingOpaque);
context.setCertainlyOpaque(m_opaque);
context.setShouldSmoothFonts(canPaintLCDText);
@@ -77,4 +74,4 @@ void OpaqueRectTrackingContentLayerDelegate::paintContents(
opaque = canvasToContentTransform.mapRect(context.opaqueRegion().asRect());
}
-}
+} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698