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:
@@ -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 {
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
|
||||
#include "utils/TraceUtils.h"
|
||||
#include <SkImageEncoder.h>
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkOSFile.h>
|
||||
#include <SkOverdrawCanvas.h>
|
||||
#include <SkOverdrawColorFilter.h>
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "LayerDrawable.h"
|
||||
#include "NinePatchUtils.h"
|
||||
#include "pipeline/skia/AnimatedDrawables.h"
|
||||
#include <SkImagePriv.h>
|
||||
|
||||
namespace android {
|
||||
namespace uirenderer {
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include <utils/Unicode.h>
|
||||
#include <SkClipStack.h>
|
||||
|
||||
#include <SkGlyphCache.h>
|
||||
|
||||
namespace android {
|
||||
namespace uirenderer {
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <utils/Color.h>
|
||||
|
||||
#include <SkGradientShader.h>
|
||||
#include <SkImagePriv.h>
|
||||
#include <SkShader.h>
|
||||
|
||||
namespace android {
|
||||
|
||||
Reference in New Issue
Block a user