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

Unified Diff: cc/test/solid_color_content_layer_client.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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/test/solid_color_content_layer_client.h ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/solid_color_content_layer_client.cc
diff --git a/cc/test/solid_color_content_layer_client.cc b/cc/test/solid_color_content_layer_client.cc
deleted file mode 100644
index 7e97bb8ae92d21da0ac0f387df41247bac191885..0000000000000000000000000000000000000000
--- a/cc/test/solid_color_content_layer_client.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2013 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/test/solid_color_content_layer_client.h"
-
-#include "third_party/skia/include/core/SkCanvas.h"
-#include "third_party/skia/include/core/SkPaint.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/gfx/geometry/rect_f.h"
-
-namespace cc {
-
-void SolidColorContentLayerClient::PaintContents(
- SkCanvas* canvas,
- const gfx::Rect& rect,
- PaintingControlSetting painting_control) {
- SkPaint paint;
- paint.setStyle(SkPaint::kFill_Style);
- paint.setColor(color_);
-
- canvas->clear(SK_ColorTRANSPARENT);
- canvas->drawRect(
- SkRect::MakeXYWH(rect.x(), rect.y(), rect.width(), rect.height()),
- paint);
-}
-
-scoped_refptr<DisplayItemList>
-SolidColorContentLayerClient::PaintContentsToDisplayList(
- const gfx::Rect& clip,
- PaintingControlSetting painting_control) {
- NOTIMPLEMENTED();
- return DisplayItemList::Create();
-}
-
-bool SolidColorContentLayerClient::FillsBoundsCompletely() const {
- return false;
-}
-
-} // namespace cc
« no previous file with comments | « cc/test/solid_color_content_layer_client.h ('k') | cc/test/test_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698