Hash :
d2b50a0b
Author :
Date :
2016-06-09T00:13:35
Move ReadPixels logic to helper methods. These routines were pretty much duplicated between D3D9 and D3D11. Since I was going to have to rewrite them again for Vulkan, I figured it would be best to move them into a common location and clean them up a bit. BUG=angleproject:1319 Change-Id: I15d39b052daf3e1020dbd0880f01ae84f3686a0a Reviewed-on: https://chromium-review.googlesource.com/349630 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
//
// Copyright (c) 2013-2014 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// copyimage.h: Defines image copying functions
#ifndef LIBANGLE_RENDERER_D3D_COPYIMAGE_H_
#define LIBANGLE_RENDERER_D3D_COPYIMAGE_H_
#include "common/mathutil.h"
#include "libANGLE/angletypes.h"
#include <stdint.h>
namespace rx
{
template <typename sourceType, typename colorDataType>
void ReadColor(const uint8_t *source, uint8_t *dest);
template <typename destType, typename colorDataType>
void WriteColor(const uint8_t *source, uint8_t *dest);
template <typename sourceType, typename destType, typename colorDataType>
void CopyPixel(const uint8_t *source, uint8_t *dest);
void CopyBGRA8ToRGBA8(const uint8_t *source, uint8_t *dest);
} // namespace rx
#include "copyimage.inl"
#endif // LIBANGLE_RENDERER_D3D_COPYIMAGE_H_