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

Side by Side Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp

Issue 2469873002: [ImageResource 4] Split ImageResource into Resource and Image parts (Closed)
Patch Set: style Created 4 years 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 16 matching lines...) Expand all
27 27
28 #include "bindings/core/v8/ExceptionMessages.h" 28 #include "bindings/core/v8/ExceptionMessages.h"
29 #include "bindings/core/v8/ExceptionState.h" 29 #include "bindings/core/v8/ExceptionState.h"
30 #include "bindings/core/v8/ScriptWrappableVisitor.h" 30 #include "bindings/core/v8/ScriptWrappableVisitor.h"
31 #include "bindings/core/v8/V8BindingMacros.h" 31 #include "bindings/core/v8/V8BindingMacros.h"
32 #include "bindings/modules/v8/HTMLCanvasElementOrOffscreenCanvas.h" 32 #include "bindings/modules/v8/HTMLCanvasElementOrOffscreenCanvas.h"
33 #include "bindings/modules/v8/WebGLAny.h" 33 #include "bindings/modules/v8/WebGLAny.h"
34 #include "core/dom/DOMArrayBuffer.h" 34 #include "core/dom/DOMArrayBuffer.h"
35 #include "core/dom/DOMTypedArray.h" 35 #include "core/dom/DOMTypedArray.h"
36 #include "core/dom/FlexibleArrayBufferView.h" 36 #include "core/dom/FlexibleArrayBufferView.h"
37 #include "core/fetch/ImageResource.h"
38 #include "core/frame/ImageBitmap.h" 37 #include "core/frame/ImageBitmap.h"
39 #include "core/frame/LocalFrame.h" 38 #include "core/frame/LocalFrame.h"
40 #include "core/frame/Settings.h" 39 #include "core/frame/Settings.h"
41 #include "core/html/HTMLCanvasElement.h" 40 #include "core/html/HTMLCanvasElement.h"
42 #include "core/html/HTMLImageElement.h" 41 #include "core/html/HTMLImageElement.h"
43 #include "core/html/HTMLVideoElement.h" 42 #include "core/html/HTMLVideoElement.h"
44 #include "core/html/ImageData.h" 43 #include "core/html/ImageData.h"
45 #include "core/inspector/ConsoleMessage.h" 44 #include "core/inspector/ConsoleMessage.h"
46 #include "core/inspector/InspectorInstrumentation.h" 45 #include "core/inspector/InspectorInstrumentation.h"
47 #include "core/layout/LayoutBox.h" 46 #include "core/layout/LayoutBox.h"
(...skipping 7727 matching lines...) Expand 10 before | Expand all | Expand 10 after
7775 7774
7776 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas( 7775 void WebGLRenderingContextBase::getHTMLOrOffscreenCanvas(
7777 HTMLCanvasElementOrOffscreenCanvas& result) const { 7776 HTMLCanvasElementOrOffscreenCanvas& result) const {
7778 if (canvas()) 7777 if (canvas())
7779 result.setHTMLCanvasElement(canvas()); 7778 result.setHTMLCanvasElement(canvas());
7780 else 7779 else
7781 result.setOffscreenCanvas(getOffscreenCanvas()); 7780 result.setOffscreenCanvas(getOffscreenCanvas());
7782 } 7781 }
7783 7782
7784 } // namespace blink 7783 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698