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

Unified Diff: cc/resources/transparency_display_item.h

Issue 956813002: Remove unused transparency display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 10 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/cc.gyp ('k') | cc/resources/transparency_display_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/transparency_display_item.h
diff --git a/cc/resources/transparency_display_item.h b/cc/resources/transparency_display_item.h
deleted file mode 100644
index d7ae7bee2132893ccdde9f0d2f79550bb8be6579..0000000000000000000000000000000000000000
--- a/cc/resources/transparency_display_item.h
+++ /dev/null
@@ -1,66 +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_RESOURCES_TRANSPARENCY_DISPLAY_ITEM_H_
-#define CC_RESOURCES_TRANSPARENCY_DISPLAY_ITEM_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/base/cc_export.h"
-#include "cc/resources/display_item.h"
-#include "skia/ext/refptr.h"
-#include "third_party/skia/include/core/SkXfermode.h"
-#include "ui/gfx/geometry/rect_f.h"
-
-class SkCanvas;
-class SkDrawPictureCallback;
-
-namespace cc {
-
-class CC_EXPORT TransparencyDisplayItem : public DisplayItem {
- public:
- ~TransparencyDisplayItem() override;
-
- static scoped_ptr<TransparencyDisplayItem> Create(
- float opacity,
- SkXfermode::Mode blend_mode) {
- return make_scoped_ptr(new TransparencyDisplayItem(opacity, blend_mode));
- }
-
- void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
-
- bool IsSuitableForGpuRasterization() const override;
- int ApproximateOpCount() const override;
- size_t PictureMemoryUsage() const override;
- void AsValueInto(base::trace_event::TracedValue* array) const override;
-
- protected:
- TransparencyDisplayItem(float opacity, SkXfermode::Mode blend_mode);
-
- private:
- float opacity_;
- SkXfermode::Mode blend_mode_;
-};
-
-class CC_EXPORT EndTransparencyDisplayItem : public DisplayItem {
- public:
- ~EndTransparencyDisplayItem() override;
-
- static scoped_ptr<EndTransparencyDisplayItem> Create() {
- return make_scoped_ptr(new EndTransparencyDisplayItem());
- }
-
- void Raster(SkCanvas* canvas, SkDrawPictureCallback* callback) const override;
-
- bool IsSuitableForGpuRasterization() const override;
- int ApproximateOpCount() const override;
- size_t PictureMemoryUsage() const override;
- void AsValueInto(base::trace_event::TracedValue* array) const override;
-
- protected:
- EndTransparencyDisplayItem();
-};
-
-} // namespace cc
-
-#endif // CC_RESOURCES_TRANSPARENCY_DISPLAY_ITEM_H_
« no previous file with comments | « cc/cc.gyp ('k') | cc/resources/transparency_display_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698