Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Side by Side Diff: cc/test/test_gles2_interface.h

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CC_TEST_TEST_GLES2_INTERFACE_H_ 5 #ifndef CC_TEST_TEST_GLES2_INTERFACE_H_
6 #define CC_TEST_TEST_GLES2_INTERFACE_H_ 6 #define CC_TEST_TEST_GLES2_INTERFACE_H_
7 7
8 #include "gpu/command_buffer/client/gles2_interface_stub.h" 8 #include "gpu/command_buffer/client/gles2_interface_stub.h"
9 9
10 namespace cc { 10 namespace cc {
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 const void* pixels) override; 119 const void* pixels) override;
120 virtual void CompressedTexImage2D(GLenum target, 120 virtual void CompressedTexImage2D(GLenum target,
121 GLint level, 121 GLint level,
122 GLenum internalformat, 122 GLenum internalformat,
123 GLsizei width, 123 GLsizei width,
124 GLsizei height, 124 GLsizei height,
125 GLint border, 125 GLint border,
126 GLsizei image_size, 126 GLsizei image_size,
127 const void* data) override; 127 const void* data) override;
128 virtual void WaitAsyncTexImage2DCHROMIUM(GLenum target) override; 128 virtual void WaitAsyncTexImage2DCHROMIUM(GLenum target) override;
129 virtual GLuint CreateImageCHROMIUM(GLsizei width, 129 virtual GLuint CreateImageCHROMIUM(ClientBuffer buffer,
130 GLsizei width,
130 GLsizei height, 131 GLsizei height,
131 GLenum internalformat, 132 GLenum internalformat) override;
132 GLenum usage) override;
133 virtual void DestroyImageCHROMIUM(GLuint image_id) override; 133 virtual void DestroyImageCHROMIUM(GLuint image_id) override;
134 virtual void* MapImageCHROMIUM(GLuint image_id) override;
135 virtual void GetImageParameterivCHROMIUM(GLuint image_id,
136 GLenum pname,
137 GLint* params) override;
138 virtual void UnmapImageCHROMIUM(GLuint image_id) override;
139 virtual GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
140 GLsizei height,
141 GLenum internalformat,
142 GLenum usage) override;
143 virtual void BindTexImage2DCHROMIUM(GLenum target, GLint image_id) override; 134 virtual void BindTexImage2DCHROMIUM(GLenum target, GLint image_id) override;
144 virtual void ReleaseTexImage2DCHROMIUM(GLenum target, 135 virtual void ReleaseTexImage2DCHROMIUM(GLenum target,
145 GLint image_id) override; 136 GLint image_id) override;
146 virtual void FramebufferRenderbuffer(GLenum target, 137 virtual void FramebufferRenderbuffer(GLenum target,
147 GLenum attachment, 138 GLenum attachment,
148 GLenum renderbuffertarget, 139 GLenum renderbuffertarget,
149 GLuint renderbuffer) override; 140 GLuint renderbuffer) override;
150 virtual void FramebufferTexture2D(GLenum target, 141 virtual void FramebufferTexture2D(GLenum target,
151 GLenum attachment, 142 GLenum attachment,
152 GLenum textarget, 143 GLenum textarget,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 float device_scale) override; 184 float device_scale) override;
194 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) override; 185 virtual void LoseContextCHROMIUM(GLenum current, GLenum other) override;
195 186
196 private: 187 private:
197 TestWebGraphicsContext3D* test_context_; 188 TestWebGraphicsContext3D* test_context_;
198 }; 189 };
199 190
200 } // namespace cc 191 } // namespace cc
201 192
202 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_ 193 #endif // CC_TEST_TEST_GLES2_INTERFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698