resolve merge conflicts of 5152fd9 to stage-aosp-master

am: 05160d70d1

Change-Id: Id1d734fd162d6063fdc818afc68f09809f764c5f
This commit is contained in:
Chih-hung Hsieh
2016-07-22 01:53:29 +00:00
committed by android-build-merger
29 changed files with 34 additions and 34 deletions

View File

@@ -57,7 +57,7 @@ public:
private: private:
friend class AnimationContext; friend class AnimationContext;
AnimationHandle(AnimationContext& context); explicit AnimationHandle(AnimationContext& context);
AnimationHandle(RenderNode& animatingNode, AnimationContext& context); AnimationHandle(RenderNode& animatingNode, AnimationContext& context);
~AnimationHandle(); ~AnimationHandle();
@@ -75,7 +75,7 @@ private:
class AnimationContext { class AnimationContext {
PREVENT_COPY_AND_ASSIGN(AnimationContext); PREVENT_COPY_AND_ASSIGN(AnimationContext);
public: public:
ANDROID_API AnimationContext(renderthread::TimeLord& clock); ANDROID_API explicit AnimationContext(renderthread::TimeLord& clock);
ANDROID_API virtual ~AnimationContext(); ANDROID_API virtual ~AnimationContext();
nsecs_t frameTimeMs() { return mFrameTimeMs; } nsecs_t frameTimeMs() { return mFrameTimeMs; }

View File

@@ -35,7 +35,7 @@ class TreeInfo;
class AnimatorManager { class AnimatorManager {
PREVENT_COPY_AND_ASSIGN(AnimatorManager); PREVENT_COPY_AND_ASSIGN(AnimatorManager);
public: public:
AnimatorManager(RenderNode& parent); explicit AnimatorManager(RenderNode& parent);
~AnimatorManager(); ~AnimatorManager();
void addAnimator(const sp<BaseRenderNodeAnimator>& animator); void addAnimator(const sp<BaseRenderNodeAnimator>& animator);

View File

@@ -77,7 +77,7 @@ public:
return sInstance != nullptr; return sInstance != nullptr;
} }
private: private:
Caches(RenderState& renderState); explicit Caches(RenderState& renderState);
static Caches* sInstance; static Caches* sInstance;
public: public:

View File

@@ -28,7 +28,7 @@ namespace uirenderer {
class CanvasPropertyPrimitive : public VirtualLightRefBase { class CanvasPropertyPrimitive : public VirtualLightRefBase {
PREVENT_COPY_AND_ASSIGN(CanvasPropertyPrimitive); PREVENT_COPY_AND_ASSIGN(CanvasPropertyPrimitive);
public: public:
CanvasPropertyPrimitive(float initialValue) : value(initialValue) {} explicit CanvasPropertyPrimitive(float initialValue) : value(initialValue) {}
float value; float value;
}; };
@@ -36,7 +36,7 @@ public:
class CanvasPropertyPaint : public VirtualLightRefBase { class CanvasPropertyPaint : public VirtualLightRefBase {
PREVENT_COPY_AND_ASSIGN(CanvasPropertyPaint); PREVENT_COPY_AND_ASSIGN(CanvasPropertyPaint);
public: public:
CanvasPropertyPaint(const SkPaint& initialValue) : value(initialValue) {} explicit CanvasPropertyPaint(const SkPaint& initialValue) : value(initialValue) {}
SkPaint value; SkPaint value;
}; };

View File

@@ -73,7 +73,7 @@ public:
class CanvasState { class CanvasState {
public: public:
CanvasState(CanvasStateClient& renderer); explicit CanvasState(CanvasStateClient& renderer);
~CanvasState(); ~CanvasState();
/** /**

View File

@@ -77,7 +77,7 @@ public:
class DeferredDisplayList { class DeferredDisplayList {
friend struct DeferStateStruct; // used to give access to allocator friend struct DeferStateStruct; // used to give access to allocator
public: public:
DeferredDisplayList(const Rect& bounds) explicit DeferredDisplayList(const Rect& bounds)
: mBounds(bounds) { : mBounds(bounds) {
clear(); clear();
} }

View File

@@ -37,7 +37,7 @@ class Program;
*/ */
class Dither { class Dither {
public: public:
Dither(Caches& caches); explicit Dither(Caches& caches);
void clear(); void clear();
void setupProgram(Program& program, GLuint* textureUnit); void setupProgram(Program& program, GLuint* textureUnit);

View File

@@ -65,7 +65,7 @@ namespace FrameInfoFlags {
class ANDROID_API UiFrameInfoBuilder { class ANDROID_API UiFrameInfoBuilder {
public: public:
UiFrameInfoBuilder(int64_t* buffer) : mBuffer(buffer) { explicit UiFrameInfoBuilder(int64_t* buffer) : mBuffer(buffer) {
memset(mBuffer, 0, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t)); memset(mBuffer, 0, UI_THREAD_FRAME_INFO_SIZE * sizeof(int64_t));
} }

View File

@@ -45,7 +45,7 @@ typedef RingBuffer<FrameInfo, 120> FrameInfoSource;
class FrameInfoVisualizer { class FrameInfoVisualizer {
public: public:
FrameInfoVisualizer(FrameInfoSource& source); explicit FrameInfoVisualizer(FrameInfoSource& source);
~FrameInfoVisualizer(); ~FrameInfoVisualizer();
bool consumeProperties(); bool consumeProperties();

View File

@@ -103,7 +103,7 @@ inline hash_t hash_type(const GradientCacheEntry& entry) {
*/ */
class GradientCache: public OnEntryRemoved<GradientCacheEntry, Texture*> { class GradientCache: public OnEntryRemoved<GradientCacheEntry, Texture*> {
public: public:
GradientCache(Extensions& extensions); explicit GradientCache(Extensions& extensions);
~GradientCache(); ~GradientCache();
/** /**

View File

@@ -56,7 +56,7 @@ struct ProfileData {
// TODO: Replace DrawProfiler with this // TODO: Replace DrawProfiler with this
class JankTracker { class JankTracker {
public: public:
JankTracker(nsecs_t frameIntervalNanos); explicit JankTracker(nsecs_t frameIntervalNanos);
~JankTracker(); ~JankTracker();
void addFrame(const FrameInfo& frame); void addFrame(const FrameInfo& frame);

View File

@@ -105,7 +105,7 @@ private:
mHeight = Layer::computeIdealHeight(layerHeight); mHeight = Layer::computeIdealHeight(layerHeight);
} }
LayerEntry(Layer* layer): explicit LayerEntry(Layer* layer):
mLayer(layer), mWidth(layer->getWidth()), mHeight(layer->getHeight()) { mLayer(layer), mWidth(layer->getWidth()), mHeight(layer->getHeight()) {
} }

View File

@@ -81,11 +81,11 @@ public:
loadIdentity(); loadIdentity();
} }
Matrix4(const float* v) { explicit Matrix4(const float* v) {
load(v); load(v);
} }
Matrix4(const SkMatrix& v) { Matrix4(const SkMatrix& v) { // NOLINT, implicit
load(v); load(v);
} }

2
libs/hwui/OpenGLRenderer.h Executable file → Normal file
View File

@@ -116,7 +116,7 @@ enum ModelViewMode {
*/ */
class OpenGLRenderer : public CanvasStateClient { class OpenGLRenderer : public CanvasStateClient {
public: public:
OpenGLRenderer(RenderState& renderState); explicit OpenGLRenderer(RenderState& renderState);
virtual ~OpenGLRenderer(); virtual ~OpenGLRenderer();
void initProperties(); void initProperties();

View File

@@ -51,7 +51,7 @@ class Caches;
class PatchCache { class PatchCache {
public: public:
PatchCache(RenderState& renderState); explicit PatchCache(RenderState& renderState);
~PatchCache(); ~PatchCache();
void init(); void init();

View File

@@ -288,7 +288,7 @@ private:
class PathProcessor: public TaskProcessor<SkBitmap*> { class PathProcessor: public TaskProcessor<SkBitmap*> {
public: public:
PathProcessor(Caches& caches); explicit PathProcessor(Caches& caches);
~PathProcessor() { } ~PathProcessor() { }
virtual void onProcess(const sp<Task<SkBitmap*> >& task) override; virtual void onProcess(const sp<Task<SkBitmap*> >& task) override;

View File

@@ -40,7 +40,7 @@ namespace uirenderer {
*/ */
class ProgramCache { class ProgramCache {
public: public:
ProgramCache(Extensions& extensions); explicit ProgramCache(Extensions& extensions);
~ProgramCache(); ~ProgramCache();
Program* get(const ProgramDescription& description); Program* get(const ProgramDescription& description);

View File

@@ -73,7 +73,7 @@ public:
bottom(height) { bottom(height) {
} }
inline Rect(const SkRect& rect): inline Rect(const SkRect& rect): // NOLINT, implicit
left(rect.fLeft), left(rect.fLeft),
top(rect.fTop), top(rect.fTop),
right(rect.fRight), right(rect.fRight),

View File

@@ -82,7 +82,7 @@ private:
mBuffer(nullptr), mFormat(format), mWidth(width), mHeight(height) { mBuffer(nullptr), mFormat(format), mWidth(width), mHeight(height) {
} }
RenderBufferEntry(RenderBuffer* buffer): explicit RenderBufferEntry(RenderBuffer* buffer):
mBuffer(buffer), mFormat(buffer->getFormat()), mBuffer(buffer), mFormat(buffer->getFormat()),
mWidth(buffer->getWidth()), mHeight(buffer->getHeight()) { mWidth(buffer->getWidth()), mHeight(buffer->getHeight()) {
} }

View File

@@ -42,7 +42,7 @@ enum ResourceType {
class ResourceReference { class ResourceReference {
public: public:
ResourceReference(ResourceType type) { explicit ResourceReference(ResourceType type) {
refCount = 0; destroyed = false; resourceType = type; refCount = 0; destroyed = false; resourceType = type;
} }

View File

@@ -39,7 +39,7 @@ namespace uirenderer {
*/ */
class ANDROID_API SkiaCanvasProxy : public SkCanvas { class ANDROID_API SkiaCanvasProxy : public SkCanvas {
public: public:
SkiaCanvasProxy(Canvas* canvas, bool filterHwuiCalls = false); explicit SkiaCanvasProxy(Canvas* canvas, bool filterHwuiCalls = false);
virtual ~SkiaCanvasProxy() {} virtual ~SkiaCanvasProxy() {}
protected: protected:

View File

@@ -111,7 +111,7 @@ inline hash_t hash_type(const ShadowText& entry) {
* Alpha texture used to represent a shadow. * Alpha texture used to represent a shadow.
*/ */
struct ShadowTexture: public Texture { struct ShadowTexture: public Texture {
ShadowTexture(Caches& caches): Texture(caches) { explicit ShadowTexture(Caches& caches): Texture(caches) {
} }
float left; float left;
@@ -121,7 +121,7 @@ struct ShadowTexture: public Texture {
class TextDropShadowCache: public OnEntryRemoved<ShadowText, ShadowTexture*> { class TextDropShadowCache: public OnEntryRemoved<ShadowText, ShadowTexture*> {
public: public:
TextDropShadowCache(); TextDropShadowCache();
TextDropShadowCache(uint32_t maxByteSize); explicit TextDropShadowCache(uint32_t maxByteSize);
~TextDropShadowCache(); ~TextDropShadowCache();
/** /**

View File

@@ -34,7 +34,7 @@ class Layer;
*/ */
class Texture : public GpuMemoryTracker { class Texture : public GpuMemoryTracker {
public: public:
Texture(Caches& caches) explicit Texture(Caches& caches)
: GpuMemoryTracker(GpuObjectType::Texture) : GpuMemoryTracker(GpuObjectType::Texture)
, mCaches(caches) , mCaches(caches)
{ } { }
@@ -171,7 +171,7 @@ private:
class AutoTexture { class AutoTexture {
public: public:
AutoTexture(Texture* texture) explicit AutoTexture(Texture* texture)
: texture(texture) {} : texture(texture) {}
~AutoTexture() { ~AutoTexture() {
if (texture && texture->cleanup) { if (texture && texture->cleanup) {

View File

@@ -73,7 +73,7 @@ typedef void* (*RunnableMethod)(void* data);
class MethodInvokeRenderTask : public RenderTask { class MethodInvokeRenderTask : public RenderTask {
public: public:
MethodInvokeRenderTask(RunnableMethod method) explicit MethodInvokeRenderTask(RunnableMethod method)
: mMethod(method), mReturnPtr(nullptr) {} : mMethod(method), mReturnPtr(nullptr) {}
void* payload() { return mData; } void* payload() { return mData; }

View File

@@ -24,7 +24,7 @@ namespace uirenderer {
class Barrier { class Barrier {
public: public:
Barrier(Condition::WakeUpType type = Condition::WAKE_UP_ALL) : mType(type), mOpened(false) { } explicit Barrier(Condition::WakeUpType type = Condition::WAKE_UP_ALL) : mType(type), mOpened(false) { }
~Barrier() { } ~Barrier() { }
void open() { void open() {

View File

@@ -27,7 +27,7 @@ namespace uirenderer {
template<typename T> template<typename T>
class Future: public LightRefBase<Future<T> > { class Future: public LightRefBase<Future<T> > {
public: public:
Future(Condition::WakeUpType type = Condition::WAKE_UP_ONE): mBarrier(type), mResult() { } explicit Future(Condition::WakeUpType type = Condition::WAKE_UP_ONE): mBarrier(type), mResult() { }
~Future() { } ~Future() { }
/** /**

View File

@@ -26,7 +26,7 @@ namespace uirenderer {
class Signal { class Signal {
public: public:
Signal(Condition::WakeUpType type = Condition::WAKE_UP_ALL) : mType(type), mSignaled(false) { } explicit Signal(Condition::WakeUpType type = Condition::WAKE_UP_ALL) : mType(type), mSignaled(false) { }
~Signal() { } ~Signal() { }
void signal() { void signal() {

View File

@@ -78,7 +78,7 @@ private:
class WorkerThread: public Thread { class WorkerThread: public Thread {
public: public:
WorkerThread(const String8 name): mSignal(Condition::WAKE_UP_ONE), mName(name) { } explicit WorkerThread(const String8 name): mSignal(Condition::WAKE_UP_ONE), mName(name) { }
bool addTask(const TaskWrapper& task); bool addTask(const TaskWrapper& task);
size_t getTaskCount() const; size_t getTaskCount() const;

View File

@@ -36,7 +36,7 @@ public:
template<typename T> template<typename T>
class TaskProcessor: public TaskProcessorBase { class TaskProcessor: public TaskProcessorBase {
public: public:
TaskProcessor(TaskManager* manager): mManager(manager) { } explicit TaskProcessor(TaskManager* manager): mManager(manager) { }
virtual ~TaskProcessor() { } virtual ~TaskProcessor() { }
void add(const sp<Task<T> >& task) { void add(const sp<Task<T> >& task) {