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

Unified Diff: cc/layers/empty_content_layer_client.cc

Issue 2738613006: Remove non-leaky LazyInstances in cc. (Closed)
Patch Set: cc-remove-non-leaky-singletons: globals Created 3 years, 9 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/layers/empty_content_layer_client.h ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/empty_content_layer_client.cc
diff --git a/cc/layers/empty_content_layer_client.cc b/cc/layers/empty_content_layer_client.cc
deleted file mode 100644
index f2d2b810101a92129f46c2241ef979e864c87010..0000000000000000000000000000000000000000
--- a/cc/layers/empty_content_layer_client.cc
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright 2015 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 "cc/layers/empty_content_layer_client.h"
-
-#include "cc/playback/display_item_list.h"
-#include "ui/gfx/geometry/rect.h"
-
-namespace cc {
-
-namespace {
-base::LazyInstance<EmptyContentLayerClient>::DestructorAtExit
- g_empty_content_layer_client = LAZY_INSTANCE_INITIALIZER;
-}
-
-// static
-ContentLayerClient* EmptyContentLayerClient::GetInstance() {
- return g_empty_content_layer_client.Pointer();
-}
-
-EmptyContentLayerClient::EmptyContentLayerClient() {}
-
-EmptyContentLayerClient::~EmptyContentLayerClient() {}
-
-gfx::Rect EmptyContentLayerClient::PaintableRegion() {
- return gfx::Rect();
-}
-
-scoped_refptr<DisplayItemList>
-EmptyContentLayerClient::PaintContentsToDisplayList(
- PaintingControlSetting painting_status) {
- return make_scoped_refptr(new DisplayItemList);
-}
-
-bool EmptyContentLayerClient::FillsBoundsCompletely() const {
- return false;
-}
-
-size_t EmptyContentLayerClient::GetApproximateUnsharedMemoryUsage() const {
- return 0u;
-}
-
-} // namespace cc
« no previous file with comments | « cc/layers/empty_content_layer_client.h ('k') | cc/layers/picture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698