Remove unnecessary dependency, and fix the chain

Test: No new tests. This should not affect behavior; only dependencies.

Font.h does not need to include SkGlyphCache.h, and doing so requires
a transitive dependency on external/skia/src/utils, which was not
intended. Forward declare it instead, and fix the build errors that
resulted.

Change-Id: Ifd09430bb848d51b139df0f0c06c63e7e48711eb
This commit is contained in:
Leon Scroggins III
2016-12-12 15:31:39 -05:00
parent 6ae1332762
commit ee708facf1
6 changed files with 10 additions and 2 deletions

View File

@@ -22,14 +22,16 @@
#include <utils/KeyedVector.h>
#include <SkScalar.h>
#include <SkGlyphCache.h>
#include <SkPaint.h>
#include <SkPathMeasure.h>
#include <SkTypeface.h>
#include "FontUtil.h"
#include "../Rect.h"
#include "../Matrix.h"
class SkGlyphCache;
namespace android {
namespace uirenderer {

View File

@@ -18,6 +18,7 @@
#include "utils/TraceUtils.h"
#include <SkImageEncoder.h>
#include <SkImagePriv.h>
#include <SkOSFile.h>
#include <SkOverdrawCanvas.h>
#include <SkOverdrawColorFilter.h>

View File

@@ -21,6 +21,7 @@
#include "LayerDrawable.h"
#include "NinePatchUtils.h"
#include "pipeline/skia/AnimatedDrawables.h"
#include <SkImagePriv.h>
namespace android {
namespace uirenderer {

View File

@@ -24,6 +24,8 @@
#include <utils/Unicode.h>
#include <SkClipStack.h>
#include <SkGlyphCache.h>
namespace android {
namespace uirenderer {

View File

@@ -17,6 +17,7 @@
#include "TestSceneBase.h"
#include "utils/Color.h"
#include "tests/common/BitmapAllocationTestUtils.h"
#include <SkImagePriv.h>
class BitmapShaders;
@@ -70,4 +71,4 @@ public:
void doFrame(int frameNr) override { }
BitmapAllocationTestUtils::BitmapAllocator mAllocator;
};
};

View File

@@ -25,6 +25,7 @@
#include <utils/Color.h>
#include <SkGradientShader.h>
#include <SkImagePriv.h>
#include <SkShader.h>
namespace android {