cc: Fix style for comments at the end of namespaces
Make sure we have a comment at the end of the namespace for each .cc file and that there are two spaces between the closing brace and the comment. R=enne Review URL: https://chromiumcodereview.appspot.com/11275153 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@166005 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
cc
active_animation.ccactive_animation_unittest.ccbitmap_content_layer_updater.ccbitmap_skpicture_content_layer_updater.cccontent_layer.cccontent_layer_unittest.cccontent_layer_updater.cccontents_scaling_layer_unittest.ccdamage_tracker_unittest.ccdelay_based_time_source_unittest.ccdelegated_renderer_layer_impl.ccdelegated_renderer_layer_impl_unittest.ccdirect_renderer.ccdraw_quad.ccdraw_quad_unittest.ccfloat_quad_unittest.ccframe_rate_controller.ccframe_rate_controller_unittest.ccframe_rate_counter.ccgeometry_binding.ccgl_renderer.ccgl_renderer_unittest.cchash_pair_unittest.ccheads_up_display_layer.ccheads_up_display_unittest.ccimage_layer.ccio_surface_layer.ccio_surface_layer_impl.cckeyframed_animation_curve.cckeyframed_animation_curve_unittest.cclayer.cclayer_animation_controller_unittest.cclayer_impl.cclayer_impl_unittest.cclayer_iterator.cclayer_iterator_unittest.cclayer_quad_unittest.cclayer_sorter.cclayer_sorter_unittest.cclayer_tiling_data.cclayer_tree_host.cclayer_tree_host_common.cclayer_tree_host_common_unittest.cclayer_tree_host_impl_unittest.cclayer_tree_host_unittest.cclayer_unittest.cclayer_updater.ccmanaged_memory_policy.ccmath_util.ccmath_util_unittest.ccocclusion_tracker_unittest.ccoverdraw_metrics.ccprioritized_texture.ccprioritized_texture_manager.ccprioritized_texture_unittest.ccpriority_calculator.ccprogram_binding.ccproxy.ccquad_culler.ccquad_culler_unittest.ccrate_limiter.ccrender_pass_unittest.ccrender_surface.ccrender_surface_filters_unittest.ccrender_surface_impl.ccrender_surface_unittest.ccrenderer.ccresource_provider.ccresource_provider_unittest.ccresource_update_controller_unittest.ccresource_update_queue.ccscheduler_state_machine.ccscheduler_state_machine_unittest.ccscheduler_unittest.ccscoped_texture.ccscoped_texture_unittest.ccscoped_thread_proxy.ccscrollbar_animation_controller.ccscrollbar_animation_controller_linear_fade.ccscrollbar_animation_controller_linear_fade_unittest.ccscrollbar_geometry_fixed_thumb.ccscrollbar_geometry_stub.ccscrollbar_layer.ccscrollbar_layer_impl.ccscrollbar_layer_unittest.ccsettings.ccshader.ccsingle_thread_proxy.ccskpicture_content_layer_updater.ccsoftware_renderer.ccsoftware_renderer_unittest.ccsolid_color_layer.ccsolid_color_layer_impl_unittest.cctexture.cctexture_copier.cctexture_copier_unittest.cctexture_draw_quad.cctexture_layer.cctexture_layer_impl.cctexture_layer_unittest.cctexture_uploader.cctexture_uploader_unittest.ccthread_impl.cctile_draw_quad.cctiled_layer.cctiled_layer_impl.cctiled_layer_impl_unittest.cctiled_layer_unittest.cctiming_function.cctree_synchronizer.cctree_synchronizer_unittest.ccvideo_layer_impl.cc
webkit/compositor_bindings
@ -207,4 +207,4 @@ void ActiveAnimation::pushPropertiesTo(ActiveAnimation* other) const
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -218,4 +218,4 @@ TEST(ActiveAnimationTest, RunStateChangesIgnoredWhileSuspended)
|
||||
EXPECT_EQ(ActiveAnimation::Running, anim->runState());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -81,4 +81,4 @@ void BitmapContentLayerUpdater::setOpaque(bool opaque)
|
||||
m_opaque = opaque;
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -69,4 +69,4 @@ void BitmapSkPictureContentLayerUpdater::paintContentsRect(SkCanvas* canvas, con
|
||||
stats.totalRasterizeTimeInSeconds += (base::TimeTicks::Now() - rasterizeBeginTime).InSecondsF();
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -106,4 +106,4 @@ void ContentLayer::setContentsOpaque(bool opaque)
|
||||
m_updater->setOpaque(opaque);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -51,4 +51,4 @@ TEST(ContentLayerTest, ContentLayerPainterWithDeviceScale)
|
||||
EXPECT_RECT_EQ(gfx::ToEnclosingRect(opaqueRectInContentSpace), resultingOpaqueRect);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -62,4 +62,4 @@ void ContentLayerUpdater::paintContents(SkCanvas* canvas, const gfx::Rect& conte
|
||||
m_contentRect = contentRect;
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -11,6 +11,8 @@
|
||||
|
||||
using namespace cc;
|
||||
|
||||
namespace {
|
||||
|
||||
class MockContentsScalingLayer : public ContentsScalingLayer {
|
||||
public:
|
||||
MockContentsScalingLayer()
|
||||
@ -74,3 +76,5 @@ TEST(ContentsScalingLayerTest, checkContentsScaleChangeTriggersNeedsDisplay) {
|
||||
EXPECT_FLOAT_RECT_EQ(gfx::RectF(0, 0, 320, 240),
|
||||
testLayer->lastNeedsDisplayRect());
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
@ -1160,4 +1160,4 @@ TEST_F(DamageTrackerTest, verifyDamageAccumulatesUntilReset)
|
||||
EXPECT_TRUE(rootDamageRect.IsEmpty());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -374,4 +374,4 @@ TEST(DelayBasedTimeSource, TestDeactivateAndReactivateAfterNextTickTime)
|
||||
EXPECT_EQ(13, thread.pendingDelayMs());
|
||||
}
|
||||
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
@ -182,4 +182,4 @@ const char* DelegatedRendererLayerImpl::layerTypeAsString() const
|
||||
return "DelegatedRendererLayer";
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -452,4 +452,4 @@ TEST_F(DelegatedRendererLayerImplTestSharedData, SharedData)
|
||||
EXPECT_TRANSFORMATION_MATRIX_EQ(expected, sharedState->quadTransform);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // annonymous namespace
|
||||
|
@ -236,4 +236,4 @@ GLenum DirectRenderer::renderPassTextureFormat(const RenderPass*)
|
||||
return GL_RGBA;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -97,4 +97,4 @@ void DrawQuad::setSharedQuadState(const SharedQuadState* sharedQuadState)
|
||||
m_sharedQuadStateId = sharedQuadState->id;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -310,4 +310,4 @@ TEST(DrawQuadTest, copyYUVVideoDrawQuad)
|
||||
EXPECT_EQ(vPlane.visibleSize, copyQuad->vPlane().visibleSize);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -58,4 +58,4 @@ TEST(FloatQuadTest, IsRectilinearTest)
|
||||
}
|
||||
}
|
||||
|
||||
} // empty namespace
|
||||
} // anonymous namespace
|
||||
|
@ -162,4 +162,4 @@ base::TimeTicks FrameRateController::nextTickTime()
|
||||
return base::TimeTicks();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -167,4 +167,4 @@ TEST(FrameRateControllerTest, TestFrameThrottling_Unthrottled)
|
||||
EXPECT_TRUE(client.vsyncTicked());
|
||||
}
|
||||
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
@ -132,4 +132,3 @@ base::TimeTicks FrameRateCounter::timeStampOfRecentFrame(int n)
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
|
||||
|
@ -55,4 +55,4 @@ void GeometryBinding::prepareForDraw()
|
||||
GLC(m_context, m_context->enableVertexAttribArray(texCoordAttribLocation()));
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -1631,4 +1631,4 @@ bool GLRenderer::isContextLost()
|
||||
return (m_context->getGraphicsResetStatusARB() != GL_NO_ERROR);
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -22,6 +22,8 @@ using namespace cc;
|
||||
using namespace WebKit;
|
||||
using namespace WebKitTests;
|
||||
|
||||
namespace {
|
||||
|
||||
class FrameCountingMemoryAllocationSettingContext : public FakeWebGraphicsContext3D {
|
||||
public:
|
||||
FrameCountingMemoryAllocationSettingContext() : m_frame(0) { }
|
||||
@ -483,3 +485,5 @@ TEST(GLRendererTest2, visibilityChangeIsLastCall)
|
||||
renderer.setVisible(false);
|
||||
EXPECT_TRUE(lastCallWasSetVisiblity);
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
@ -5,6 +5,8 @@
|
||||
#include "cc/hash_pair.h"
|
||||
#include "testing/gtest/include/gtest/gtest.h"
|
||||
|
||||
namespace {
|
||||
|
||||
class HashPairTest : public testing::Test {
|
||||
};
|
||||
|
||||
@ -58,3 +60,5 @@ TEST_F(HashPairTest, IntegerPairs) {
|
||||
INSERT_PAIR_TEST(Int64Int32Pair, 9, (1 << 29) + 378128932);
|
||||
INSERT_PAIR_TEST(Int64Int64Pair, 10, (1LL << 60) + 78931732321);
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
@ -72,4 +72,4 @@ void HeadsUpDisplayLayer::pushPropertiesTo(LayerImpl* layerImpl)
|
||||
hudLayerImpl->setFontAtlas(m_fontAtlas.Pass());
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -110,4 +110,4 @@ TEST_F(HudWithRootLayerChange, runMultiThread)
|
||||
runTest(true);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -164,4 +164,4 @@ float ImageLayer::contentsScaleY() const
|
||||
return static_cast<float>(m_bitmap.height()) / bounds().height();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -50,4 +50,4 @@ void IOSurfaceLayer::pushPropertiesTo(LayerImpl* layer)
|
||||
ioSurfaceLayer->setIOSurfaceProperties(m_ioSurfaceId, m_ioSurfaceSize);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -112,4 +112,4 @@ const char* IOSurfaceLayerImpl::layerTypeAsString() const
|
||||
return "IOSurfaceLayer";
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -220,4 +220,4 @@ WebTransformationMatrix KeyframedTransformAnimationCurve::getValue(double t) con
|
||||
return m_keyframes[i+1]->value().blend(m_keyframes[i]->value(), progress);
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -203,4 +203,4 @@ TEST(KeyframedAnimationCurveTest, CubicBezierTimingFunction)
|
||||
EXPECT_FLOAT_EQ(1, curve->getValue(1));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -844,4 +844,4 @@ void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
|
||||
// Currently we don't use z-order to decide what to paint, so there's no need to actually sort Layers.
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -558,4 +558,4 @@ TEST(LayerAnimationControllerTest, ForceSyncWhenSynchronizedStartTimeNeeded)
|
||||
EXPECT_EQ(ActiveAnimation::WaitingForTargetAvailability, activeAnimation->runState());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -705,4 +705,4 @@ void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer)
|
||||
m_scrollbarAnimationController->updateScrollOffset(this);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -163,4 +163,4 @@ TEST(LayerImplTest, verifyLayerChangesAreTrackedProperly)
|
||||
EXECUTE_AND_VERIFY_SUBTREE_DID_NOT_CHANGE(root->setBounds(arbitrarySize));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -146,4 +146,4 @@ template CC_EXPORT void LayerIteratorActions::FrontToBack::end(LayerIterator<Lay
|
||||
template CC_EXPORT void LayerIteratorActions::FrontToBack::begin(LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>&);
|
||||
template CC_EXPORT void LayerIteratorActions::FrontToBack::goToHighestInSubtree(LayerIterator<LayerImpl, LayerImplList, RenderSurfaceImpl, FrontToBack>&);
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -252,4 +252,4 @@ TEST(LayerIteratorTest, complexTreeMultiSurface)
|
||||
EXPECT_COUNT(root3, -1, -1, 0);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -43,4 +43,4 @@ TEST(LayerQuadTest, Inflate)
|
||||
EXPECT_TRUE(layerQuad.ToQuadF() == quad);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -413,4 +413,4 @@ void LayerSorter::sort(LayerList::iterator first, LayerList::iterator last)
|
||||
m_activeEdges.clear();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -264,4 +264,4 @@ TEST(LayerSorterTest, verifyExistingOrderingPreservedWhenNoZDiff)
|
||||
EXPECT_EQ(5, layerList[4]->id());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -148,4 +148,4 @@ gfx::Size LayerTilingData::bounds() const
|
||||
return m_tilingData.total_size();
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -839,4 +839,4 @@ void LayerTreeHost::setAnimationEventsRecursive(const AnimationEventsVector& eve
|
||||
setAnimationEventsRecursive(events, layer->children()[childIndex].get(), wallClockTime);
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -930,4 +930,4 @@ LayerImpl* LayerTreeHostCommon::findLayerThatIsHitByPoint(const gfx::PointF& scr
|
||||
return foundLayer;
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -4045,4 +4045,4 @@ TEST(LayerTreeHostCommonTest, verifySubtreeSearch)
|
||||
EXPECT_EQ(0, LayerTreeHostCommon::findLayerInSubtree(root.get(), nonexistentId));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -4409,4 +4409,4 @@ INSTANTIATE_TEST_CASE_P(LayerTreeHostImplTests,
|
||||
LayerTreeHostImplTest,
|
||||
::testing::Values(false, true));
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -3270,4 +3270,4 @@ TEST_F(LayerTreeHostTestDeferCommits, runMultiThread)
|
||||
runTest(true);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -799,4 +799,4 @@ TEST(LayerTestWithoutFixture, setBoundsTriggersSetNeedsRedrawAfterGettingNonEmpt
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -17,4 +17,4 @@ LayerUpdater::Resource::~Resource()
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -42,4 +42,4 @@ bool ManagedMemoryPolicy::operator!=(const ManagedMemoryPolicy& other) const
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -393,4 +393,4 @@ FloatSize MathUtil::projectVector(const FloatSize& source, const FloatSize& dest
|
||||
return FloatSize(projectedLength * destination.width(), projectedLength * destination.height());
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -181,4 +181,4 @@ TEST(MathUtilTest, vectorProjection)
|
||||
projectedVector.height() / targetVector.height());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -3173,4 +3173,4 @@ protected:
|
||||
|
||||
ALL_OCCLUSIONTRACKER_TEST(OcclusionTrackerTestMinimumTrackingSize);
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -183,4 +183,4 @@ void OverdrawMetrics::recordMetricsInternal(MetricsType metricsType, const Layer
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -203,4 +203,4 @@ void PrioritizedTexture::returnBackingTexture()
|
||||
m_manager->returnBackingTexture(this);
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -472,4 +472,4 @@ void PrioritizedTextureManager::assertInvariants()
|
||||
#endif
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -702,4 +702,4 @@ TEST_F(PrioritizedTextureTest, usageStatistics)
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -132,4 +132,4 @@ int PriorityCalculator::allowEverythingCutoff()
|
||||
return everythingPriorityCutoff;
|
||||
}
|
||||
|
||||
} // cc
|
||||
} // namespace cc
|
||||
|
@ -139,4 +139,4 @@ void ProgramBindingBase::cleanupShaders(WebGraphicsContext3D* context)
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -109,4 +109,4 @@ Proxy::~Proxy()
|
||||
DCHECK(isMainThread());
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -89,4 +89,4 @@ bool QuadCuller::append(scoped_ptr<DrawQuad> drawQuad, AppendQuadsData& appendQu
|
||||
return appendQuadInternal(drawQuad.Pass(), culledRect, m_quadList, *m_occlusionTracker, m_showCullingWithDebugBorderQuads);
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -468,4 +468,4 @@ TEST(QuadCullerTest, verifyWithoutMetrics)
|
||||
}
|
||||
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -58,4 +58,4 @@ void RateLimiter::rateLimitContext()
|
||||
m_context->rateLimitOffscreenContextCHROMIUM();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -84,4 +84,4 @@ TEST(RenderPassTest, copyShouldBeIdenticalExceptIdAndQuads)
|
||||
EXPECT_EQ(sizeof(RenderPassSize), sizeof(RenderPass));
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -36,4 +36,4 @@ gfx::RectF RenderSurface::drawableContentRect() const
|
||||
return drawableContentRect;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -137,4 +137,4 @@ TEST(RenderSurfaceFiltersTest, testOptimize)
|
||||
EXPECT_EQ(3u, optimized.size());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -251,4 +251,4 @@ void RenderSurfaceImpl::appendQuads(QuadSink& quadSink, AppendQuadsData& appendQ
|
||||
maskTexCoordScaleX, maskTexCoordScaleY, maskTexCoordOffsetX, maskTexCoordOffsetY).PassAs<DrawQuad>(), appendQuadsData);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -162,4 +162,4 @@ TEST(RenderSurfaceTest, sanityCheckSurfaceCreatesCorrectRenderPass)
|
||||
EXPECT_EQ(origin, pass->transformToRootTarget());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -18,4 +18,4 @@ bool Renderer::isContextLost()
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -714,4 +714,4 @@ void ResourceProvider::debugNotifyLeaveZone()
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -592,4 +592,4 @@ INSTANTIATE_TEST_CASE_P(ResourceProviderTests,
|
||||
::testing::Values(ResourceProvider::GLTexture,
|
||||
ResourceProvider::Bitmap));
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -477,4 +477,4 @@ TEST_F(ResourceUpdateControllerTest, UpdatesCompleteInFiniteTime)
|
||||
EXPECT_EQ(2, m_numTotalUploads);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -77,4 +77,4 @@ bool ResourceUpdateQueue::hasMoreUpdates() const
|
||||
return m_fullEntries.size() || m_partialEntries.size() || m_copyEntries.size();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -316,4 +316,4 @@ void SchedulerStateMachine::setMaximumNumberOfFailedDrawsBeforeDrawIsForced(int
|
||||
m_maximumNumberOfFailedDrawsBeforeDrawIsForced = numDraws;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -870,4 +870,4 @@ TEST(SchedulerStateMachineTest, TestBeginFrameWhenContextLost)
|
||||
EXPECT_EQ(SchedulerStateMachine::ACTION_BEGIN_FRAME, state.nextAction());
|
||||
}
|
||||
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
@ -467,4 +467,4 @@ TEST(SchedulerTest, NoBeginFrameWhenSwapFailsDuringForcedCommit)
|
||||
EXPECT_EQ(0, controllerPtr->numFramesPending());
|
||||
}
|
||||
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
@ -50,4 +50,4 @@ void ScopedTexture::leak()
|
||||
setId(0);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -105,4 +105,4 @@ TEST(ScopedTextureTest, LeakScopedTexture)
|
||||
EXPECT_EQ(1u, resourceProvider->numResources());
|
||||
}
|
||||
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
@ -43,4 +43,4 @@ void ScopedThreadProxy::runTaskIfNotShutdown(base::Closure cb)
|
||||
cb.Run();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -94,4 +94,4 @@ void ScrollbarAnimationController::updateScrollOffsetAtTime(LayerImpl* scrollLay
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -74,4 +74,4 @@ float ScrollbarAnimationControllerLinearFade::opacityAtTime(double monotonicTime
|
||||
return 0;
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -116,4 +116,4 @@ TEST_F(ScrollbarAnimationControllerLinearFadeTest, verifyForceAwakenByPinch)
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
} // annoymous namespace
|
||||
|
@ -91,4 +91,4 @@ ScrollbarGeometryFixedThumb::ScrollbarGeometryFixedThumb(scoped_ptr<WebScrollbar
|
||||
{
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -106,4 +106,4 @@ void ScrollbarGeometryStub::splitTrack(WebScrollbar* scrollbar, const WebRect& u
|
||||
m_geometry->splitTrack(scrollbar, unconstrainedTrackRect, beforeThumbRect, thumbRect, afterThumbRect);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -275,4 +275,4 @@ void ScrollbarLayer::update(ResourceUpdateQueue& queue, const OcclusionTracker*,
|
||||
updatePart(m_thumbUpdater.get(), m_thumb.get(), originThumbRect, queue, stats);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -207,4 +207,4 @@ const char* ScrollbarLayerImpl::layerTypeAsString() const
|
||||
return "ScrollbarLayer";
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -128,4 +128,4 @@ TEST(ScrollbarLayerTest, scrollOffsetSynchronization)
|
||||
EXPECT_EQ(300, ccScrollbarLayer->maximum());
|
||||
}
|
||||
|
||||
}
|
||||
} // anonymous namespace
|
||||
|
@ -109,4 +109,4 @@ void Settings::setPageScalePinchZoomEnabled(bool enabled)
|
||||
s_pageScalePinchZoomEnabled = enabled;
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -882,4 +882,4 @@ std::string FragmentShaderCheckerboard::getShaderString() const
|
||||
);
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -397,4 +397,4 @@ void SingleThreadProxy::didSwapFrame()
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -76,4 +76,4 @@ void SkPictureContentLayerUpdater::setOpaque(bool opaque)
|
||||
m_layerIsOpaque = opaque;
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -361,4 +361,4 @@ void SoftwareRenderer::setVisible(bool visible)
|
||||
m_visible = visible;
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -152,4 +152,4 @@ TEST_F(SoftwareRendererTest, tileQuad)
|
||||
EXPECT_EQ(SK_ColorCYAN, pixels[outerPixels - outerSize.width() - 2]);
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -29,4 +29,4 @@ SolidColorLayer::~SolidColorLayer()
|
||||
{
|
||||
}
|
||||
|
||||
} // namespace cc
|
||||
} // namespace cc
|
||||
|
@ -90,4 +90,4 @@ TEST(SolidColorLayerImplTest, verifyCorrectOpacityInQuad)
|
||||
EXPECT_EQ(opacity, SolidColorDrawQuad::materialCast(quadCuller.quadList()[0])->opacity());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
} // anonymous namespace
|
||||
|
@ -46,4 +46,4 @@ size_t Texture::memorySizeBytes(const gfx::Size& size, GLenum format)
|
||||
return bytesPerPixel(format) * size.width() * size.height();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -95,4 +95,4 @@ void AcceleratedTextureCopier::flush()
|
||||
GLC(m_context, m_context->flush());
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -17,6 +17,8 @@ using testing::InSequence;
|
||||
using testing::Test;
|
||||
using testing::_;
|
||||
|
||||
namespace {
|
||||
|
||||
class MockContext : public FakeWebGraphicsContext3D {
|
||||
public:
|
||||
MOCK_METHOD2(bindFramebuffer, void(WGC3Denum, WebGLId));
|
||||
@ -56,3 +58,5 @@ TEST(TextureCopierTest, testDrawArraysCopy)
|
||||
TextureCopier::Parameters copy = { sourceTextureId, destTextureId, size };
|
||||
copier->copyTexture(copy);
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
|
@ -35,4 +35,4 @@ const TextureDrawQuad* TextureDrawQuad::materialCast(const DrawQuad* quad)
|
||||
return static_cast<const TextureDrawQuad*>(quad);
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -132,4 +132,4 @@ void TextureLayer::pushPropertiesTo(LayerImpl* layer)
|
||||
m_contentCommitted = drawsContent();
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -77,4 +77,4 @@ const char* TextureLayerImpl::layerTypeAsString() const
|
||||
return "TextureLayer";
|
||||
}
|
||||
|
||||
}
|
||||
} // namespace cc
|
||||
|
@ -189,4 +189,4 @@ TEST_F(TextureLayerTest, syncImplWhenRemovingFromTree)
|
||||
Mock::VerifyAndClearExpectations(m_layerTreeHost.get());
|
||||
}
|
||||
|
||||
} // anonymous namespace
|
||||
} // anonymous namespace
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user