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

Unified Diff: skia/ext/lazy_pixel_ref.h

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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 | « skia/ext/analysis_canvas.cc ('k') | skia/ext/lazy_pixel_ref.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/lazy_pixel_ref.h
diff --git a/skia/ext/lazy_pixel_ref.h b/skia/ext/lazy_pixel_ref.h
deleted file mode 100644
index 2335fdfb39ee3033080aa5806c8366415819275a..0000000000000000000000000000000000000000
--- a/skia/ext/lazy_pixel_ref.h
+++ /dev/null
@@ -1,39 +0,0 @@
-// Copyright (c) 2012 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 SKIA_EXT_LAZY_PIXEL_REF_H_
-#define SKIA_EXT_LAZY_PIXEL_REF_H_
-
-#include "third_party/skia/include/core/SkPixelRef.h"
-#include "third_party/skia/include/core/SkRect.h"
-
-namespace skia {
-
-// This class extends SkPixelRef to facilitate lazy image decoding on the impl
-// thread.
-class SK_API LazyPixelRef : public SkPixelRef {
- public:
- explicit LazyPixelRef(const SkImageInfo& info);
- ~LazyPixelRef() override;
-
- struct PrepareParams {
- // Clipping rect for this pixel ref.
- SkIRect clip_rect;
- };
-
- // Request the ImageDecodingStore to prepare image decoding for the
- // given clipping rect. Returns true is succeeded, or false otherwise.
- virtual bool PrepareToDecode(const PrepareParams& params) = 0;
-
- // Returns true if this pixel ref is already in the ImageDecodingStore's
- // cache, false otherwise. Much cheaper than PrepareToDecode().
- virtual bool MaybeDecoded() = 0;
-
- // Start decoding the image.
- virtual void Decode() = 0;
-};
-
-} // namespace skia
-
-#endif // SKIA_EXT_LAZY_PIXEL_REF_H_
« no previous file with comments | « skia/ext/analysis_canvas.cc ('k') | skia/ext/lazy_pixel_ref.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698