OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "cc/resources/resource_provider.h" | 5 #include "cc/resources/resource_provider.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3009 void(GLenum target, | 3009 void(GLenum target, |
3010 GLint level, | 3010 GLint level, |
3011 GLenum internalformat, | 3011 GLenum internalformat, |
3012 GLsizei width, | 3012 GLsizei width, |
3013 GLsizei height, | 3013 GLsizei height, |
3014 GLint border, | 3014 GLint border, |
3015 GLsizei image_size, | 3015 GLsizei image_size, |
3016 const void* data)); | 3016 const void* data)); |
3017 MOCK_METHOD1(waitAsyncTexImage2DCHROMIUM, void(GLenum)); | 3017 MOCK_METHOD1(waitAsyncTexImage2DCHROMIUM, void(GLenum)); |
3018 MOCK_METHOD4(createImageCHROMIUM, | 3018 MOCK_METHOD4(createImageCHROMIUM, |
3019 GLuint(ClientBuffer, GLsizei, GLsizei, GLenum)); | 3019 GLuint(ClientBuffer*, GLsizei, GLsizei, GLenum)); |
3020 MOCK_METHOD1(destroyImageCHROMIUM, void(GLuint)); | 3020 MOCK_METHOD1(destroyImageCHROMIUM, void(GLuint)); |
3021 MOCK_METHOD2(bindTexImage2DCHROMIUM, void(GLenum, GLint)); | 3021 MOCK_METHOD2(bindTexImage2DCHROMIUM, void(GLenum, GLint)); |
3022 MOCK_METHOD2(releaseTexImage2DCHROMIUM, void(GLenum, GLint)); | 3022 MOCK_METHOD2(releaseTexImage2DCHROMIUM, void(GLenum, GLint)); |
3023 | 3023 |
3024 // We're mocking bindTexture, so we override | 3024 // We're mocking bindTexture, so we override |
3025 // TestWebGraphicsContext3D::texParameteri to avoid assertions related to the | 3025 // TestWebGraphicsContext3D::texParameteri to avoid assertions related to the |
3026 // currently bound texture. | 3026 // currently bound texture. |
3027 virtual void texParameteri(GLenum target, GLenum pname, GLint param) {} | 3027 virtual void texParameteri(GLenum target, GLenum pname, GLint param) {} |
3028 }; | 3028 }; |
3029 | 3029 |
(...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3725 resource_provider->AllocateForTesting(id); | 3725 resource_provider->AllocateForTesting(id); |
3726 Mock::VerifyAndClearExpectations(context); | 3726 Mock::VerifyAndClearExpectations(context); |
3727 | 3727 |
3728 DCHECK_EQ(10u, context->PeekTextureId()); | 3728 DCHECK_EQ(10u, context->PeekTextureId()); |
3729 resource_provider->DeleteResource(id); | 3729 resource_provider->DeleteResource(id); |
3730 } | 3730 } |
3731 } | 3731 } |
3732 | 3732 |
3733 } // namespace | 3733 } // namespace |
3734 } // namespace cc | 3734 } // namespace cc |
OLD | NEW |