michael@0: # HG changeset patch michael@0: # User Ehsan Akhgari michael@0: michael@0: Bug 945588 - Add include guards to SkConfig8888.h michael@0: michael@0: diff --git a/gfx/skia/src/core/SkConfig8888.h b/gfx/skia/src/core/SkConfig8888.h michael@0: index 96eaef2..36bc9b4 100644 michael@0: --- a/gfx/skia/src/core/SkConfig8888.h michael@0: +++ b/gfx/skia/src/core/SkConfig8888.h michael@0: @@ -1,16 +1,18 @@ michael@0: michael@0: /* michael@0: * Copyright 2011 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: +#ifndef SkConfig8888_DEFINED michael@0: +#define SkConfig8888_DEFINED michael@0: michael@0: #include "SkCanvas.h" michael@0: #include "SkColorPriv.h" michael@0: michael@0: /** michael@0: * Converts pixels from one Config8888 to another Config8888 michael@0: */ michael@0: void SkConvertConfig8888Pixels(uint32_t* dstPixels, michael@0: @@ -69,8 +71,10 @@ static inline void SkCopyConfig8888ToBitmap(const SkBitmap& dstBmp, michael@0: int h = dstBmp.height(); michael@0: size_t dstRowBytes = dstBmp.rowBytes(); michael@0: uint32_t* dstPixels = reinterpret_cast(dstBmp.getPixels()); michael@0: michael@0: SkConvertConfig8888Pixels(dstPixels, dstRowBytes, SkCanvas::kNative_Premul_Config8888, srcPixels, srcRowBytes, srcConfig8888, w, h); michael@0: } michael@0: michael@0: } michael@0: + michael@0: +#endif