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

Unified Diff: third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h

Issue 2277603005: Implement tex{Sub}Image{2|3}D with ArrayBufferView sub source. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tiny improvement Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
diff --git a/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h b/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
index 2dffab2b431f3ff5d6e88a29acd3c240c00d4dbf..41702047266751c50a3817542dbdd5456c2e3404 100644
--- a/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
+++ b/third_party/WebKit/Source/wtf/typed_arrays/TypedArrayBase.h
@@ -57,6 +57,11 @@ public:
return m_length * sizeof(T);
}
+ unsigned typeSize() const final
+ {
+ return sizeof(T);
+ }
+
// Invoked by the indexed getter. Does not perform range checks; caller
// is responsible for doing so and returning undefined as necessary.
T item(unsigned index) const
« no previous file with comments | « third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698