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

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

Issue 2365653005: Fix failing transferToImageBitmap layout tests and commit pixel test on Mac (Closed)
Patch Set: rebase Created 4 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
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp ('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 16 matching lines...) Expand all
27 if (!drawingBuffer->initialize(size, multisampleExtensionSupported)) { 27 if (!drawingBuffer->initialize(size, multisampleExtensionSupported)) {
28 drawingBuffer->beginDestruction(); 28 drawingBuffer->beginDestruction();
29 return nullptr; 29 return nullptr;
30 } 30 }
31 return drawingBuffer.release(); 31 return drawingBuffer.release();
32 } 32 }
33 33
34 DrawingBufferForTests(std::unique_ptr<WebGraphicsContext3DProvider> contextP rovider, std::unique_ptr<Extensions3DUtil> extensionsUtil, PreserveDrawingBuffer preserve) 34 DrawingBufferForTests(std::unique_ptr<WebGraphicsContext3DProvider> contextP rovider, std::unique_ptr<Extensions3DUtil> extensionsUtil, PreserveDrawingBuffer preserve)
35 : DrawingBuffer(std::move(contextProvider), std::move(extensionsUtil), f alse /* discardFramebufferSupported */, 35 : DrawingBuffer(std::move(contextProvider), std::move(extensionsUtil), f alse /* discardFramebufferSupported */,
36 true /* wantAlphaChannel */, false /* premultipliedAlpha */, preserv e, WebGL1, 36 true /* wantAlphaChannel */, false /* premultipliedAlpha */, preserv e, WebGL1,
37 false /* wantDepth */, false /* wantStencil */) 37 false /* wantDepth */, false /* wantStencil */,
38 DrawingBuffer::AllowChromiumImage /* ChromiumImageUsage */)
38 , m_live(0) 39 , m_live(0)
39 { } 40 { }
40 41
41 ~DrawingBufferForTests() override 42 ~DrawingBufferForTests() override
42 { 43 {
43 if (m_live) 44 if (m_live)
44 *m_live = false; 45 *m_live = false;
45 } 46 }
46 47
47 bool* m_live; 48 bool* m_live;
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 GLbyte m_currentMailboxByte = 0; 214 GLbyte m_currentMailboxByte = 0;
214 IntSize m_mostRecentlyProducedSize; 215 IntSize m_mostRecentlyProducedSize;
215 bool m_createImageChromiumFail = false; 216 bool m_createImageChromiumFail = false;
216 GLuint m_currentImageId = 1; 217 GLuint m_currentImageId = 1;
217 HashMap<GLuint, IntSize> m_textureSizes; 218 HashMap<GLuint, IntSize> m_textureSizes;
218 HashMap<GLuint, IntSize> m_imageSizes; 219 HashMap<GLuint, IntSize> m_imageSizes;
219 HashMap<GLuint, GLuint> m_imageToTextureMap; 220 HashMap<GLuint, GLuint> m_imageToTextureMap;
220 }; 221 };
221 222
222 } // blink 223 } // blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/gpu/DrawingBufferTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698