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

Unified Diff: tools/viewer/SampleSlide.cpp

Issue 2063883002: Revert of Add samples to Viewer. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 6 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 | « tools/viewer/SampleSlide.h ('k') | tools/viewer/Slide.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/viewer/SampleSlide.cpp
diff --git a/tools/viewer/SampleSlide.cpp b/tools/viewer/SampleSlide.cpp
deleted file mode 100755
index 2ae1280dc3117a24a9ac6c12b42e8377183554dc..0000000000000000000000000000000000000000
--- a/tools/viewer/SampleSlide.cpp
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
-* Copyright 2016 Google Inc.
-*
-* Use of this source code is governed by a BSD-style license that can be
-* found in the LICENSE file.
-*/
-
-#include "SampleSlide.h"
-
-#include "SkCanvas.h"
-#include "SkCommonFlags.h"
-#include "SkOSFile.h"
-#include "SkStream.h"
-
-SampleSlide::SampleSlide(const SkViewFactory* factory) : fViewFactory(factory) {
- SkView* view = (*factory)();
- SampleCode::RequestTitle(view, &fName);
- view->unref();
-}
-
-SampleSlide::~SampleSlide() {}
-
-void SampleSlide::draw(SkCanvas* canvas) {
- fView->draw(canvas);
-}
-
-void SampleSlide::load(SkScalar winWidth, SkScalar winHeight) {
- fView = (*fViewFactory)();
- fView->setVisibleP(true);
- fView->setClipToBounds(false);
- fView->setSize(winWidth, winHeight);
-}
-
-void SampleSlide::unload() {
- fView->unref();
- fView = nullptr;
-}
« no previous file with comments | « tools/viewer/SampleSlide.h ('k') | tools/viewer/Slide.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698