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

Unified Diff: cc/playback/image_hijack_canvas.h

Issue 2748263002: Move cc::DisplayItemList and related classes into cc/paint/ (Closed)
Patch Set: Merge branch 'master' into ccpaint 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/playback/float_clip_display_item.cc ('k') | cc/playback/image_hijack_canvas.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/image_hijack_canvas.h
diff --git a/cc/playback/image_hijack_canvas.h b/cc/playback/image_hijack_canvas.h
deleted file mode 100644
index 2a43d52493862653c50781ee5aba8373da1b2af6..0000000000000000000000000000000000000000
--- a/cc/playback/image_hijack_canvas.h
+++ /dev/null
@@ -1,66 +0,0 @@
-// Copyright 2016 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_IMAGE_HIJACK_CANVAS_H_
-#define CC_PLAYBACK_IMAGE_HIJACK_CANVAS_H_
-
-#include <unordered_set>
-
-#include "base/macros.h"
-#include "cc/base/cc_export.h"
-#include "cc/playback/image_id.h"
-#include "third_party/skia/include/utils/SkNWayCanvas.h"
-
-namespace cc {
-
-class ImageDecodeCache;
-
-class CC_EXPORT ImageHijackCanvas : public SkNWayCanvas {
- public:
- ImageHijackCanvas(int width,
- int height,
- ImageDecodeCache* image_decode_cache,
- const ImageIdFlatSet* images_to_skip);
-
- private:
- // Ensure that pictures are unpacked by this canvas, instead of being
- // forwarded to the raster canvas.
- void onDrawPicture(const SkPicture* picture,
- const SkMatrix* matrix,
- const SkPaint* paint) override;
- void onDrawImage(const SkImage* image,
- SkScalar x,
- SkScalar y,
- const SkPaint* paint) override;
- void onDrawImageRect(const SkImage* image,
- const SkRect* src,
- const SkRect& dst,
- const SkPaint* paint,
- SrcRectConstraint constraint) override;
- void onDrawRect(const SkRect&, const SkPaint&) override;
- void onDrawPath(const SkPath& path, const SkPaint& paint) override;
- void onDrawOval(const SkRect& r, const SkPaint& paint) override;
- void onDrawArc(const SkRect& r,
- SkScalar start_angle,
- SkScalar sweep_angle,
- bool use_center,
- const SkPaint& paint) override;
- void onDrawRRect(const SkRRect& rr, const SkPaint& paint) override;
- void onDrawImageNine(const SkImage* image,
- const SkIRect& center,
- const SkRect& dst,
- const SkPaint* paint) override;
-
- bool ShouldSkipImage(const SkImage* image) const;
- bool ShouldSkipImageInPaint(const SkPaint& paint) const;
-
- ImageDecodeCache* image_decode_cache_;
- const ImageIdFlatSet* images_to_skip_;
-
- DISALLOW_COPY_AND_ASSIGN(ImageHijackCanvas);
-};
-
-} // namespace cc
-
-#endif // CC_PLAYBACK_IMAGE_HIJACK_CANVAS_H_
« no previous file with comments | « cc/playback/float_clip_display_item.cc ('k') | cc/playback/image_hijack_canvas.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698