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

Unified Diff: cc/playback/transform_display_item.h

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: none 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
Index: cc/playback/transform_display_item.h
diff --git a/cc/playback/transform_display_item.h b/cc/playback/transform_display_item.h
deleted file mode 100644
index 25eb755ad0916fc5d87f5ae4967f9a559630428b..0000000000000000000000000000000000000000
--- a/cc/playback/transform_display_item.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright 2014 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.
-
-#ifndef CC_PLAYBACK_TRANSFORM_DISPLAY_ITEM_H_
-#define CC_PLAYBACK_TRANSFORM_DISPLAY_ITEM_H_
-
-#include <stddef.h>
-
-#include <memory>
-
-#include "base/memory/ptr_util.h"
-#include "cc/base/cc_export.h"
-#include "cc/playback/display_item.h"
-#include "ui/gfx/transform.h"
-
-class SkCanvas;
-
-namespace cc {
-
-class CC_EXPORT TransformDisplayItem : public DisplayItem {
- public:
- explicit TransformDisplayItem(const gfx::Transform& transform);
- ~TransformDisplayItem() override;
-
- void Raster(SkCanvas* canvas,
- SkPicture::AbortCallback* callback) const override;
-
- size_t ExternalMemoryUsage() const { return 0; }
- int ApproximateOpCount() const { return 1; }
-
- const gfx::Transform& transform() const { return transform_; }
-
- private:
- void SetNew(const gfx::Transform& transform);
-
- gfx::Transform transform_;
-};
-
-class CC_EXPORT EndTransformDisplayItem : public DisplayItem {
- public:
- EndTransformDisplayItem();
- ~EndTransformDisplayItem() override;
-
- static std::unique_ptr<EndTransformDisplayItem> Create() {
- return base::MakeUnique<EndTransformDisplayItem>();
- }
-
- void Raster(SkCanvas* canvas,
- SkPicture::AbortCallback* callback) const override;
-
- int ApproximateOpCount() const { return 0; }
-};
-
-} // namespace cc
-
-#endif // CC_PLAYBACK_TRANSFORM_DISPLAY_ITEM_H_

Powered by Google App Engine
This is Rietveld 408576698