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

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

Issue 2825183002: Plumb CanvasColorParams to canvas image classes (Closed)
Patch Set: Require both runtime flags Created 3 years, 8 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/CanvasColorParams.h"
7 #include "platform/graphics/gpu/DrawingBuffer.h" 8 #include "platform/graphics/gpu/DrawingBuffer.h"
8 #include "platform/graphics/gpu/Extensions3DUtil.h" 9 #include "platform/graphics/gpu/Extensions3DUtil.h"
9 #include "public/platform/WebGraphicsContext3DProvider.h" 10 #include "public/platform/WebGraphicsContext3DProvider.h"
10 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
11 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
12 13
13 namespace blink { 14 namespace blink {
14 15
15 enum { 16 enum {
16 kInitialWidth = 100, 17 kInitialWidth = 100,
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 std::move(context_provider), 55 std::move(context_provider),
55 std::move(extensions_util), 56 std::move(extensions_util),
56 client, 57 client,
57 false /* discardFramebufferSupported */, 58 false /* discardFramebufferSupported */,
58 true /* wantAlphaChannel */, 59 true /* wantAlphaChannel */,
59 false /* premultipliedAlpha */, 60 false /* premultipliedAlpha */,
60 preserve, 61 preserve,
61 kWebGL1, 62 kWebGL1,
62 false /* wantDepth */, 63 false /* wantDepth */,
63 false /* wantStencil */, 64 false /* wantStencil */,
64 DrawingBuffer::kAllowChromiumImage /* ChromiumImageUsage */), 65 DrawingBuffer::kAllowChromiumImage /* ChromiumImageUsage */,
66 CanvasColorParams()),
65 live_(0) {} 67 live_(0) {}
66 68
67 ~DrawingBufferForTests() override { 69 ~DrawingBufferForTests() override {
68 if (live_) 70 if (live_)
69 *live_ = false; 71 *live_ = false;
70 } 72 }
71 73
72 bool* live_; 74 bool* live_;
73 75
74 int RecycledBitmapCount() { return recycled_bitmaps_.size(); } 76 int RecycledBitmapCount() { return recycled_bitmaps_.size(); }
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 GLbyte current_mailbox_byte_ = 0; 402 GLbyte current_mailbox_byte_ = 0;
401 IntSize most_recently_produced_size_; 403 IntSize most_recently_produced_size_;
402 bool create_image_chromium_fail_ = false; 404 bool create_image_chromium_fail_ = false;
403 GLuint current_image_id_ = 1; 405 GLuint current_image_id_ = 1;
404 HashMap<GLuint, IntSize> texture_sizes_; 406 HashMap<GLuint, IntSize> texture_sizes_;
405 HashMap<GLuint, IntSize> image_sizes_; 407 HashMap<GLuint, IntSize> image_sizes_;
406 HashMap<GLuint, GLuint> image_to_texture_map_; 408 HashMap<GLuint, GLuint> image_to_texture_map_;
407 }; 409 };
408 410
409 } // blink 411 } // 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