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

Unified Diff: gpu/command_buffer/service/buffer_manager.h

Issue 2380683003: add range check to service-side MapBufferRange (Closed)
Patch Set: rebase over reformat Created 4 years, 3 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
Index: gpu/command_buffer/service/buffer_manager.h
diff --git a/gpu/command_buffer/service/buffer_manager.h b/gpu/command_buffer/service/buffer_manager.h
index 16c43cff95fae49d89128258a2f2069f822ebf30..f2456a4166ac76dee192a45a10078994205c8a0c 100644
--- a/gpu/command_buffer/service/buffer_manager.h
+++ b/gpu/command_buffer/service/buffer_manager.h
@@ -70,6 +70,9 @@ class GPU_EXPORT Buffer : public base::RefCounted<Buffer> {
// Returns a pointer to shadowed data.
const void* GetRange(GLintptr offset, GLsizeiptr size) const;
+ // Check if an offset, size range is valid for the current buffer.
+ bool CheckRange(GLintptr offset, GLsizeiptr size) const;
+
bool IsDeleted() const {
return deleted_;
}
@@ -174,9 +177,6 @@ class GPU_EXPORT Buffer : public base::RefCounted<Buffer> {
// Clears any cache of index ranges.
void ClearCache();
- // Check if an offset, size range is valid for the current buffer.
- bool CheckRange(GLintptr offset, GLsizeiptr size) const;
-
// The manager that owns this Buffer.
BufferManager* manager_;
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698