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

Unified Diff: example/HelloWorld.h

Issue 886413004: move HelloWorld to be a peer of SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: exclude android as well Created 5 years, 11 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 | « no previous file | example/HelloWorld.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: example/HelloWorld.h
diff --git a/experimental/SkiaExamples/SkExample.h b/example/HelloWorld.h
similarity index 68%
copy from experimental/SkiaExamples/SkExample.h
copy to example/HelloWorld.h
index 4f4b10be5507dfdca4166c996bddafe5fa099854..e5cde271bfe01c9735cfc5a5f7b272ac2e8f7164 100644
--- a/experimental/SkiaExamples/SkExample.h
+++ b/example/HelloWorld.h
@@ -1,5 +1,5 @@
/*
- * Copyright 2013 Google Inc.
+ * Copyright 2015 Google Inc.
*
*
* Use of this source code is governed by a BSD-style license that can be
@@ -7,45 +7,25 @@
*
*/
-#ifndef SkExample_DEFINED
-#define SkExample_DEFINED
+#ifndef HelloWorld_DEFINED
+#define HelloWorld_DEFINED
#include "SkSurface.h"
#include "SkWindow.h"
-#include "SkTRegistry.h"
class GrContext;
struct GrGLInterface;
class GrRenderTarget;
class SkCanvas;
-class SkExampleWindow;
-class SkExample : SkNoncopyable {
-public:
- SkExample(SkExampleWindow* window) : fWindow(window) {}
-
- virtual ~SkExample() {}
-
- // Your class should override this method to do its thing.
- virtual void draw(SkCanvas* canvas) = 0;
-
- SkString getName() { return fName; };
- // Use this public registry to tell the world about your sample.
- typedef SkTRegistry<SkExample*(*)(SkExampleWindow*)> Registry;
-
-protected:
- SkExampleWindow* fWindow;
- SkString fName;
-};
-
-class SkExampleWindow : public SkOSWindow {
+class HelloWorldWindow : public SkOSWindow {
public:
enum DeviceType {
kRaster_DeviceType,
kGPU_DeviceType,
};
- SkExampleWindow(void* hwnd);
- virtual ~SkExampleWindow() SK_OVERRIDE;
+ HelloWorldWindow(void* hwnd);
+ virtual ~HelloWorldWindow() SK_OVERRIDE;
// Changes the device type of the object.
bool setUpBackend();
« no previous file with comments | « no previous file | example/HelloWorld.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698