1 //
2 // Copyright 2021 The ANGLE Project Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
5 //
6 
7 // loadtextureborder.cpp: Defines border color load functions.
8 
9 #include "image_util/loadtextureborder.h"
10 
11 namespace angle
12 {
13 
LoadA8ToR8(angle::ColorF & mBorderColor)14 void LoadA8ToR8(angle::ColorF &mBorderColor)
15 {
16     mBorderColor.red   = mBorderColor.alpha;
17     mBorderColor.alpha = 0;
18 }
19 
LoadLA8ToR8G8(angle::ColorF & mBorderColor)20 void LoadLA8ToR8G8(angle::ColorF &mBorderColor)
21 {
22     mBorderColor.green = mBorderColor.alpha;
23     mBorderColor.alpha = 0;
24 }
25 
LoadToNative(angle::ColorF & mBorderColor)26 void LoadToNative(angle::ColorF &mBorderColor) {}
27 
28 }  // namespace angle
29