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

Side by Side Diff: third_party/WebKit/Source/core/dom/DOMArrayBufferView.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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DOMDataView.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef DOMArrayBufferView_h 5 #ifndef DOMArrayBufferView_h
6 #define DOMArrayBufferView_h 6 #define DOMArrayBufferView_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/dom/DOMArrayBuffer.h" 10 #include "core/dom/DOMArrayBuffer.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 } 57 }
58 58
59 const WTF::ArrayBufferView* view() const { return m_bufferView.get(); } 59 const WTF::ArrayBufferView* view() const { return m_bufferView.get(); }
60 WTF::ArrayBufferView* view() { return m_bufferView.get(); } 60 WTF::ArrayBufferView* view() { return m_bufferView.get(); }
61 61
62 ViewType type() const { return view()->type(); } 62 ViewType type() const { return view()->type(); }
63 const char* typeName() { return view()->typeName(); } 63 const char* typeName() { return view()->typeName(); }
64 void* baseAddress() const { return view()->baseAddress(); } 64 void* baseAddress() const { return view()->baseAddress(); }
65 unsigned byteOffset() const { return view()->byteOffset(); } 65 unsigned byteOffset() const { return view()->byteOffset(); }
66 unsigned byteLength() const { return view()->byteLength(); } 66 unsigned byteLength() const { return view()->byteLength(); }
67 unsigned typeSize() const { return view()->typeSize(); }
67 void setNeuterable(bool flag) { return view()->setNeuterable(flag); } 68 void setNeuterable(bool flag) { return view()->setNeuterable(flag); }
68 bool isShared() const { return view()->isShared(); } 69 bool isShared() const { return view()->isShared(); }
69 70
70 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) override 71 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) override
71 { 72 {
72 ASSERT_NOT_REACHED(); 73 ASSERT_NOT_REACHED();
73 return v8::Local<v8::Object>(); 74 return v8::Local<v8::Object>();
74 } 75 }
75 76
76 DEFINE_INLINE_VIRTUAL_TRACE() 77 DEFINE_INLINE_VIRTUAL_TRACE()
(...skipping 17 matching lines...) Expand all
94 } 95 }
95 96
96 private: 97 private:
97 RefPtr<WTF::ArrayBufferView> m_bufferView; 98 RefPtr<WTF::ArrayBufferView> m_bufferView;
98 mutable Member<DOMArrayBufferBase> m_domArrayBuffer; 99 mutable Member<DOMArrayBufferBase> m_domArrayBuffer;
99 }; 100 };
100 101
101 } // namespace blink 102 } // namespace blink
102 103
103 #endif // DOMArrayBufferView_h 104 #endif // DOMArrayBufferView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/DOMDataView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698