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

Unified Diff: src/gpu/GrDistanceFieldAdjustTable.h

Issue 1521453002: Move all text stuff to its own folder (Closed) Base URL: https://skia.googlesource.com/skia.git@cleanuptext11textutils2
Patch Set: Created 5 years 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 | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDistanceFieldAdjustTable.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/GrDistanceFieldAdjustTable.h
diff --git a/src/gpu/GrDistanceFieldAdjustTable.h b/src/gpu/GrDistanceFieldAdjustTable.h
deleted file mode 100644
index f7d8bee0897a4fc37d602e9f7cefbacd125f0b23..0000000000000000000000000000000000000000
--- a/src/gpu/GrDistanceFieldAdjustTable.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
- * Copyright 2015 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef GrDistanceFieldAdjustTable_DEFINED
-#define GrDistanceFieldAdjustTable_DEFINED
-
-#include "SkRefCnt.h"
-#include "SkScalar.h"
-
-// Distance field text needs this table to compute a value for use in the fragment shader.
-// Because the GrAtlasTextContext can go out of scope before the final flush, this needs to be
-// refcnted and malloced
-struct GrDistanceFieldAdjustTable : public SkNVRefCnt<GrDistanceFieldAdjustTable> {
- GrDistanceFieldAdjustTable() { this->buildDistanceAdjustTable(); }
- ~GrDistanceFieldAdjustTable() { delete[] fTable; }
-
- const SkScalar& operator[] (int i) const {
- return fTable[i];
- }
-
-private:
- void buildDistanceAdjustTable();
-
- SkScalar* fTable;
-};
-
-#endif
« no previous file with comments | « src/gpu/GrContext.cpp ('k') | src/gpu/GrDistanceFieldAdjustTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698