diff options
author | Alexis Hetu <sugoi@google.com> | 2018-04-10 10:46:47 -0400 |
---|---|---|
committer | Alexis Hétu <sugoi@google.com> | 2018-04-10 15:25:32 +0000 |
commit | 9151a3c4279123986fa2fa02a3e094d5da2d874d (patch) | |
tree | e606f0e571684a7ad6a8afca144e2d3c543017b2 | |
parent | d23cf636a0f6214dc361b682aa54d569b4928530 (diff) | |
download | swiftshader-9151a3c4279123986fa2fa02a3e094d5da2d874d.tar.gz |
Chromium build fix
Adding a getPlane() function in order to not have the "plane" private
member unused, which causes a warning and makes compilation fail.
Change-Id: I3ec08d3439c7e8f3d4314f3b4864d12e9c34d6f4
Reviewed-on: https://swiftshader-review.googlesource.com/18468
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
-rw-r--r-- | src/OpenGL/common/Image.cpp | 5 | ||||
-rw-r--r-- | src/OpenGL/common/Image.hpp | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/OpenGL/common/Image.cpp b/src/OpenGL/common/Image.cpp index 9c2645d8e..6f3832222 100644 --- a/src/OpenGL/common/Image.cpp +++ b/src/OpenGL/common/Image.cpp @@ -1225,6 +1225,11 @@ namespace egl return format; } + size_t ClientBuffer::getPlane() const + { + return plane; + } + int ClientBuffer::pitchP() const { #if defined(__APPLE__) diff --git a/src/OpenGL/common/Image.hpp b/src/OpenGL/common/Image.hpp index 5e924c0f8..5c8175a2e 100644 --- a/src/OpenGL/common/Image.hpp +++ b/src/OpenGL/common/Image.hpp @@ -73,6 +73,7 @@ public: int getWidth() const; int getHeight() const; sw::Format getFormat() const; + size_t getPlane() const; int pitchP() const; void retain(); void release(); |