| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <fcntl.h> | 5 #include <fcntl.h> |
| 6 #include <libdrm/i915_drm.h> | 6 #include <libdrm/i915_drm.h> |
| 7 #include <linux/types.h> | 7 #include <linux/types.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <sys/mman.h> | 10 #include <sys/mman.h> |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 return image; | 117 return image; |
| 118 } | 118 } |
| 119 | 119 |
| 120 unsigned GetTextureTarget() const { return GL_TEXTURE_EXTERNAL_OES; } | 120 unsigned GetTextureTarget() const { return GL_TEXTURE_EXTERNAL_OES; } |
| 121 | 121 |
| 122 const uint8_t* GetImageColor() { return kImageColor; } | 122 const uint8_t* GetImageColor() { return kImageColor; } |
| 123 | 123 |
| 124 private: | 124 private: |
| 125 }; | 125 }; |
| 126 | 126 |
| 127 | |
| 128 // TODO(crbug.com/618516) - The tests in this file can only be run | 127 // TODO(crbug.com/618516) - The tests in this file can only be run |
| 129 // on a real device, and not on linux desktop builds, so they are | 128 // on a real device, and not on linux desktop builds, so they are |
| 130 // disabled until they can correctly detect the environment and do | 129 // disabled until they can correctly detect the environment and do |
| 131 INSTANTIATE_TYPED_TEST_CASE_P(DISABLED_GLImageOzoneNativePixmapDrm, | 130 INSTANTIATE_TYPED_TEST_CASE_P(DISABLED_GLImageOzoneNativePixmapDrm, |
| 132 GLImageTest, | 131 GLImageTest, |
| 133 GLImageOzoneNativePixmapDrmTestDelegate); | 132 GLImageOzoneNativePixmapDrmTestDelegate); |
| 134 | 133 |
| 135 INSTANTIATE_TYPED_TEST_CASE_P(DISABLED_GLImageOzoneNativePixmapDrm, | 134 INSTANTIATE_TYPED_TEST_CASE_P(DISABLED_GLImageOzoneNativePixmapDrm, |
| 136 GLImageBindTest, | 135 GLImageBindTest, |
| 137 GLImageOzoneNativePixmapDrmTestDelegate); | 136 GLImageOzoneNativePixmapDrmTestDelegate); |
| 138 | 137 |
| 139 } // namespace | 138 } // namespace |
| 140 } // namespace gl | 139 } // namespace gl |
| OLD | NEW |