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

Unified Diff: cc/HeadsUpDisplayLayerChromium.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/HeadsUpDisplayLayerChromium.h ('k') | cc/IOSurfaceLayerChromium.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/HeadsUpDisplayLayerChromium.cpp
diff --git a/cc/HeadsUpDisplayLayerChromium.cpp b/cc/HeadsUpDisplayLayerChromium.cpp
deleted file mode 100644
index 743593ca002f2c878f21561c6e949c028c8a9050..0000000000000000000000000000000000000000
--- a/cc/HeadsUpDisplayLayerChromium.cpp
+++ /dev/null
@@ -1,75 +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"
-
-#include "HeadsUpDisplayLayerChromium.h"
-
-#include "CCHeadsUpDisplayLayerImpl.h"
-#include "CCLayerTreeHost.h"
-#include "TraceEvent.h"
-
-namespace cc {
-
-scoped_refptr<HeadsUpDisplayLayerChromium> HeadsUpDisplayLayerChromium::create()
-{
- return make_scoped_refptr(new HeadsUpDisplayLayerChromium());
-}
-
-HeadsUpDisplayLayerChromium::HeadsUpDisplayLayerChromium()
- : LayerChromium()
-{
-
- setBounds(IntSize(512, 128));
-}
-
-HeadsUpDisplayLayerChromium::~HeadsUpDisplayLayerChromium()
-{
-}
-
-void HeadsUpDisplayLayerChromium::update(CCTextureUpdateQueue&, const CCOcclusionTracker*, CCRenderingStats&)
-{
- const CCLayerTreeSettings& settings = layerTreeHost()->settings();
- int maxTextureSize = layerTreeHost()->rendererCapabilities().maxTextureSize;
-
- IntSize bounds;
- if (settings.showPlatformLayerTree || settings.showDebugRects()) {
- bounds.setWidth(std::min(maxTextureSize, layerTreeHost()->deviceViewportSize().width()));
- bounds.setHeight(std::min(maxTextureSize, layerTreeHost()->deviceViewportSize().height()));
- } else {
- bounds.setWidth(512);
- bounds.setHeight(128);
- }
-
- setBounds(bounds);
-}
-
-bool HeadsUpDisplayLayerChromium::drawsContent() const
-{
- return true;
-}
-
-void HeadsUpDisplayLayerChromium::setFontAtlas(scoped_ptr<CCFontAtlas> fontAtlas)
-{
- m_fontAtlas = fontAtlas.Pass();
- setNeedsCommit();
-}
-
-scoped_ptr<CCLayerImpl> HeadsUpDisplayLayerChromium::createCCLayerImpl()
-{
- return CCHeadsUpDisplayLayerImpl::create(m_layerId).PassAs<CCLayerImpl>();
-}
-
-void HeadsUpDisplayLayerChromium::pushPropertiesTo(CCLayerImpl* layerImpl)
-{
- LayerChromium::pushPropertiesTo(layerImpl);
-
- if (!m_fontAtlas.get())
- return;
-
- CCHeadsUpDisplayLayerImpl* hudLayerImpl = static_cast<CCHeadsUpDisplayLayerImpl*>(layerImpl);
- hudLayerImpl->setFontAtlas(m_fontAtlas.Pass());
-}
-
-}
« no previous file with comments | « cc/HeadsUpDisplayLayerChromium.h ('k') | cc/IOSurfaceLayerChromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698