| 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();
|
|
|