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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTestHelpers.h

Issue 2404513002: exo: Implement zcr_linux_explicit_synchronization_v1
Patch Set: rebase, pull in cl 2443823002 Created 4 years, 1 month 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
« no previous file with comments | « components/exo/wayland/server.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "gpu/command_buffer/common/capabilities.h" 5 #include "gpu/command_buffer/common/capabilities.h"
6 #include "platform/RuntimeEnabledFeatures.h" 6 #include "platform/RuntimeEnabledFeatures.h"
7 #include "platform/graphics/gpu/DrawingBuffer.h" 7 #include "platform/graphics/gpu/DrawingBuffer.h"
8 #include "platform/graphics/gpu/Extensions3DUtil.h" 8 #include "platform/graphics/gpu/Extensions3DUtil.h"
9 #include "public/platform/WebGraphicsContext3DProvider.h" 9 #include "public/platform/WebGraphicsContext3DProvider.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 MOCK_METHOD1(DestroyImageMock, void(GLuint imageId)); 252 MOCK_METHOD1(DestroyImageMock, void(GLuint imageId));
253 void DestroyImageCHROMIUM(GLuint imageId) { 253 void DestroyImageCHROMIUM(GLuint imageId) {
254 m_imageSizes.remove(imageId); 254 m_imageSizes.remove(imageId);
255 // No textures should be bound to this. 255 // No textures should be bound to this.
256 CHECK(m_imageToTextureMap.find(imageId) == m_imageToTextureMap.end()); 256 CHECK(m_imageToTextureMap.find(imageId) == m_imageToTextureMap.end());
257 m_imageSizes.remove(imageId); 257 m_imageSizes.remove(imageId);
258 DestroyImageMock(imageId); 258 DestroyImageMock(imageId);
259 } 259 }
260 260
261 MOCK_METHOD1(BindTexImage2DMock, void(GLint imageId)); 261 MOCK_METHOD1(BindTexImage2DMock, void(GLint imageId));
262 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { 262 void BindTexImage2DCHROMIUM(GLenum target, GLint imageId, GLint fenceId) {
263 if (target == imageCHROMIUMTextureTarget()) { 263 if (target == imageCHROMIUMTextureTarget()) {
264 m_textureSizes.set(m_boundTextures[target], 264 m_textureSizes.set(m_boundTextures[target],
265 m_imageSizes.find(imageId)->value); 265 m_imageSizes.find(imageId)->value);
266 m_imageToTextureMap.set(imageId, m_boundTextures[target]); 266 m_imageToTextureMap.set(imageId, m_boundTextures[target]);
267 BindTexImage2DMock(imageId); 267 BindTexImage2DMock(imageId);
268 } 268 }
269 } 269 }
270 270
271 MOCK_METHOD1(ReleaseTexImage2DMock, void(GLint imageId)); 271 MOCK_METHOD1(ReleaseTexImage2DMock, void(GLint imageId));
272 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { 272 void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 GLbyte m_currentMailboxByte = 0; 392 GLbyte m_currentMailboxByte = 0;
393 IntSize m_mostRecentlyProducedSize; 393 IntSize m_mostRecentlyProducedSize;
394 bool m_createImageChromiumFail = false; 394 bool m_createImageChromiumFail = false;
395 GLuint m_currentImageId = 1; 395 GLuint m_currentImageId = 1;
396 HashMap<GLuint, IntSize> m_textureSizes; 396 HashMap<GLuint, IntSize> m_textureSizes;
397 HashMap<GLuint, IntSize> m_imageSizes; 397 HashMap<GLuint, IntSize> m_imageSizes;
398 HashMap<GLuint, GLuint> m_imageToTextureMap; 398 HashMap<GLuint, GLuint> m_imageToTextureMap;
399 }; 399 };
400 400
401 } // blink 401 } // blink
OLDNEW
« no previous file with comments | « components/exo/wayland/server.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698