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

Unified Diff: cc/CCSolidColorLayerImpl.cpp

Issue 11122003: [cc] Rename all cc/ filenames to Chromium style (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/CCSolidColorLayerImpl.h ('k') | cc/CCStreamVideoDrawQuad.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCSolidColorLayerImpl.cpp
diff --git a/cc/CCSolidColorLayerImpl.cpp b/cc/CCSolidColorLayerImpl.cpp
deleted file mode 100644
index abf8d489336feb59f17339056bf524a377c787e5..0000000000000000000000000000000000000000
--- a/cc/CCSolidColorLayerImpl.cpp
+++ /dev/null
@@ -1,53 +0,0 @@
-// Copyright 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "config.h"
-
-#if USE(ACCELERATED_COMPOSITING)
-
-#include "CCSolidColorLayerImpl.h"
-
-#include "CCQuadSink.h"
-#include "CCSolidColorDrawQuad.h"
-#include <wtf/MathExtras.h>
-
-using namespace std;
-using WebKit::WebTransformationMatrix;
-
-namespace cc {
-
-CCSolidColorLayerImpl::CCSolidColorLayerImpl(int id)
- : CCLayerImpl(id)
- , m_tileSize(256)
-{
-}
-
-CCSolidColorLayerImpl::~CCSolidColorLayerImpl()
-{
-}
-
-void CCSolidColorLayerImpl::appendQuads(CCQuadSink& quadSink, CCAppendQuadsData& appendQuadsData)
-{
- CCSharedQuadState* sharedQuadState = quadSink.useSharedQuadState(createSharedQuadState());
- appendDebugBorderQuad(quadSink, sharedQuadState, appendQuadsData);
-
- // We create a series of smaller quads instead of just one large one so that the
- // culler can reduce the total pixels drawn.
- int width = contentBounds().width();
- int height = contentBounds().height();
- for (int x = 0; x < width; x += m_tileSize) {
- for (int y = 0; y < height; y += m_tileSize) {
- IntRect solidTileRect(x, y, min(width - x, m_tileSize), min(height - y, m_tileSize));
- quadSink.append(CCSolidColorDrawQuad::create(sharedQuadState, solidTileRect, backgroundColor()).PassAs<CCDrawQuad>(), appendQuadsData);
- }
- }
-}
-
-const char* CCSolidColorLayerImpl::layerTypeAsString() const
-{
- return "SolidColorLayer";
-}
-
-} // namespace cc
-#endif // USE(ACCELERATED_COMPOSITING)
« no previous file with comments | « cc/CCSolidColorLayerImpl.h ('k') | cc/CCStreamVideoDrawQuad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698