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

Unified Diff: include/core/SkEmptyShader.h

Issue 366133002: move SkChecksum and SkEmptyShader to private (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | « include/core/SkChecksum.h ('k') | src/core/SkChecksum.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/core/SkEmptyShader.h
diff --git a/include/core/SkEmptyShader.h b/include/core/SkEmptyShader.h
deleted file mode 100644
index 7de3bc1f8f9c2105681d6dde157448e5b4257335..0000000000000000000000000000000000000000
--- a/include/core/SkEmptyShader.h
+++ /dev/null
@@ -1,43 +0,0 @@
-/*
- * Copyright 2011 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkEmptyShader_DEFINED
-#define SkEmptyShader_DEFINED
-
-#include "SkShader.h"
-
-// TODO: move this to private, as there is a public factory on SkShader
-
-/**
- * \class SkEmptyShader
- * A Shader that always draws nothing. Its createContext always returns NULL.
- */
-class SK_API SkEmptyShader : public SkShader {
-public:
- SkEmptyShader() {}
-
- virtual size_t contextSize() const SK_OVERRIDE {
- // Even though createContext returns NULL we have to return a value of at least
- // sizeof(SkShader::Context) to satisfy SkSmallAllocator.
- return sizeof(SkShader::Context);
- }
-
- SK_TO_STRING_OVERRIDE()
- SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkEmptyShader)
-
-protected:
- SkEmptyShader(SkReadBuffer& buffer) : INHERITED(buffer) {}
-
- virtual SkShader::Context* onCreateContext(const ContextRec&, void*) const SK_OVERRIDE {
- return NULL;
- }
-
-private:
- typedef SkShader INHERITED;
-};
-
-#endif
« no previous file with comments | « include/core/SkChecksum.h ('k') | src/core/SkChecksum.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698