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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.h

Issue 2425113002: Fix the linear-rgb canvas color space so that it renders (Closed)
Patch Set: 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 void parseAttribute(const QualifiedName&, 254 void parseAttribute(const QualifiedName&,
255 const AtomicString&, 255 const AtomicString&,
256 const AtomicString&) override; 256 const AtomicString&) override;
257 LayoutObject* createLayoutObject(const ComputedStyle&) override; 257 LayoutObject* createLayoutObject(const ComputedStyle&) override;
258 bool areAuthorShadowsAllowed() const override { return false; } 258 bool areAuthorShadowsAllowed() const override { return false; }
259 259
260 void reset(); 260 void reset();
261 261
262 std::unique_ptr<ImageBufferSurface> createWebGLImageBufferSurface( 262 std::unique_ptr<ImageBufferSurface> createWebGLImageBufferSurface(
263 const IntSize& deviceSize, 263 const IntSize& deviceSize,
264 OpacityMode, 264 OpacityMode);
265 sk_sp<SkColorSpace>);
266 std::unique_ptr<ImageBufferSurface> createAcceleratedImageBufferSurface( 265 std::unique_ptr<ImageBufferSurface> createAcceleratedImageBufferSurface(
267 const IntSize& deviceSize, 266 const IntSize& deviceSize,
268 OpacityMode, 267 OpacityMode,
269 sk_sp<SkColorSpace>,
270 int* msaaSampleCount); 268 int* msaaSampleCount);
271 std::unique_ptr<ImageBufferSurface> createUnacceleratedImageBufferSurface( 269 std::unique_ptr<ImageBufferSurface> createUnacceleratedImageBufferSurface(
272 const IntSize& deviceSize, 270 const IntSize& deviceSize,
273 OpacityMode, 271 OpacityMode);
274 sk_sp<SkColorSpace>);
275 void createImageBuffer(); 272 void createImageBuffer();
276 void createImageBufferInternal( 273 void createImageBufferInternal(
277 std::unique_ptr<ImageBufferSurface> externalSurface); 274 std::unique_ptr<ImageBufferSurface> externalSurface);
278 bool shouldUseDisplayList(const IntSize& deviceSize); 275 bool shouldUseDisplayList(const IntSize& deviceSize);
279 276
280 void setSurfaceSize(const IntSize&); 277 void setSurfaceSize(const IntSize&);
281 278
282 bool paintsIntoCanvasBuffer() const; 279 bool paintsIntoCanvasBuffer() const;
283 280
284 ImageData* toImageData(SourceDrawingBuffer, SnapshotReason) const; 281 ImageData* toImageData(SourceDrawingBuffer, SnapshotReason) const;
(...skipping 28 matching lines...) Expand all
313 // Used for OffscreenCanvas that controls this HTML canvas element 310 // Used for OffscreenCanvas that controls this HTML canvas element
314 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge; 311 std::unique_ptr<CanvasSurfaceLayerBridge> m_surfaceLayerBridge;
315 312
316 int m_numFramesSinceLastRenderingModeSwitch; 313 int m_numFramesSinceLastRenderingModeSwitch;
317 bool m_pendingRenderingModeSwitch; 314 bool m_pendingRenderingModeSwitch;
318 }; 315 };
319 316
320 } // namespace blink 317 } // namespace blink
321 318
322 #endif // HTMLCanvasElement_h 319 #endif // HTMLCanvasElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698