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

Unified Diff: tools/vulkan/viewer/SKPSlide.h

Issue 1873543003: Add slides to VulkanViewer (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add slide support files Created 4 years, 8 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: tools/vulkan/viewer/SKPSlide.h
diff --git a/tools/vulkan/viewer/SKPSlide.h b/tools/vulkan/viewer/SKPSlide.h
new file mode 100644
index 0000000000000000000000000000000000000000..a4534db49413fe0bdc6eba5c3079db8f52c904a7
--- /dev/null
+++ b/tools/vulkan/viewer/SKPSlide.h
@@ -0,0 +1,28 @@
+/*
+* Copyright 2016 Google Inc.
+*
+* Use of this source code is governed by a BSD-style license that can be
+* found in the LICENSE file.
+*/
+
+#ifndef SKPSlide_DEFINED
+#define SKPSlide_DEFINED
+
+#include "Slide.h"
+#include "SkPicture.h"
+
+class SKPSlide : public Slide {
+public:
+ SKPSlide(const char* name, sk_sp<const SkPicture> pic);
+ ~SKPSlide() override;
+
+ void draw(SkCanvas* canvas) override;
+ SkString getName() override { return fName; }
+
+private:
+ sk_sp<const SkPicture> fPic;
+ SkIRect fCullRect;
+ SkString fName;
+};
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698