OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
4 * Copyright (C) 2010 Mozilla Corporation. All rights reserved. | 4 * Copyright (C) 2010 Mozilla Corporation. 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 22 matching lines...) Expand all Loading... |
33 #include "SkTypes.h" | 33 #include "SkTypes.h" |
34 #include "core/html/ImageData.h" | 34 #include "core/html/ImageData.h" |
35 #include "core/html/canvas/CheckedInt.h" | 35 #include "core/html/canvas/CheckedInt.h" |
36 #include "core/platform/chromium/support/GraphicsContext3DPrivate.h" | 36 #include "core/platform/chromium/support/GraphicsContext3DPrivate.h" |
37 #include "core/platform/graphics/Extensions3D.h" | 37 #include "core/platform/graphics/Extensions3D.h" |
38 #include "core/platform/graphics/Image.h" | 38 #include "core/platform/graphics/Image.h" |
39 #include "core/platform/graphics/ImageBuffer.h" | 39 #include "core/platform/graphics/ImageBuffer.h" |
40 #include "core/platform/graphics/ImageObserver.h" | 40 #include "core/platform/graphics/ImageObserver.h" |
41 #include "core/platform/graphics/gpu/DrawingBuffer.h" | 41 #include "core/platform/graphics/gpu/DrawingBuffer.h" |
42 #include "core/platform/image-decoders/ImageDecoder.h" | 42 #include "core/platform/image-decoders/ImageDecoder.h" |
| 43 #include "wtf/ArrayBufferView.h" |
| 44 #include "wtf/CPU.h" |
| 45 #include "wtf/OwnArrayPtr.h" |
| 46 #include "wtf/PassOwnArrayPtr.h" |
| 47 #include "wtf/text/CString.h" |
| 48 #include "wtf/text/WTFString.h" |
43 | 49 |
44 #include <public/Platform.h> | 50 #include <public/Platform.h> |
45 #include <public/WebGraphicsContext3D.h> | 51 #include <public/WebGraphicsContext3D.h> |
46 #include <wtf/ArrayBufferView.h> | |
47 #include <wtf/OwnArrayPtr.h> | |
48 #include <wtf/PassOwnArrayPtr.h> | |
49 #include <wtf/text/CString.h> | |
50 #include <wtf/text/WTFString.h> | |
51 | 52 |
52 namespace WebCore { | 53 namespace WebCore { |
53 | 54 |
54 namespace { | 55 namespace { |
55 | 56 |
56 GraphicsContext3D::DataFormat getDataFormat(GC3Denum destinationFormat, GC3Denum
destinationType) | 57 GraphicsContext3D::DataFormat getDataFormat(GC3Denum destinationFormat, GC3Denum
destinationType) |
57 { | 58 { |
58 GraphicsContext3D::DataFormat dstFormat = GraphicsContext3D::DataFormatRGBA8
; | 59 GraphicsContext3D::DataFormat dstFormat = GraphicsContext3D::DataFormatRGBA8
; |
59 switch (destinationType) { | 60 switch (destinationType) { |
60 case GraphicsContext3D::UNSIGNED_BYTE: | 61 case GraphicsContext3D::UNSIGNED_BYTE: |
(...skipping 2248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2309 case GraphicsContext3D::STENCIL_INDEX8: | 2310 case GraphicsContext3D::STENCIL_INDEX8: |
2310 return ChannelStencil; | 2311 return ChannelStencil; |
2311 case GraphicsContext3D::DEPTH_STENCIL: | 2312 case GraphicsContext3D::DEPTH_STENCIL: |
2312 return ChannelDepth | ChannelStencil; | 2313 return ChannelDepth | ChannelStencil; |
2313 default: | 2314 default: |
2314 return 0; | 2315 return 0; |
2315 } | 2316 } |
2316 } | 2317 } |
2317 | 2318 |
2318 } // namespace WebCore | 2319 } // namespace WebCore |
OLD | NEW |