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

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

Issue 12017032: Add calls to EnsureGPUMemoryAvailable into GLES2DecoderImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/gles2_cmd_decoder_unittest_base.h
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
index 7a1f975ecb1ceb2c0b94de07443050c541bb4e02..6241f0bdc87a7951eebda935e1a9c6f52a6a22f5 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
+++ b/gpu/command_buffer/service/gles2_cmd_decoder_unittest_base.h
@@ -27,6 +27,8 @@
namespace gpu {
namespace gles2 {
+class MemoryTracker;
+
class GLES2DecoderTestBase : public testing::Test {
public:
GLES2DecoderTestBase();
@@ -140,6 +142,10 @@ class GLES2DecoderTestBase : public testing::Test {
void SetBucketAsCString(uint32 bucket_id, const char* str);
+ void set_memory_tracker(MemoryTracker* memory_tracker) {
+ memory_tracker_ = memory_tracker;
+ }
+
void InitDecoder(
const char* extensions,
bool has_alpha,
@@ -468,6 +474,7 @@ class GLES2DecoderTestBase : public testing::Test {
scoped_refptr<gfx::GLContextStub> context_;
scoped_ptr<GLES2Decoder> mock_decoder_;
scoped_ptr<GLES2Decoder> decoder_;
+ MemoryTracker* memory_tracker_;
GLuint client_buffer_id_;
GLuint client_framebuffer_id_;

Powered by Google App Engine
This is Rietveld 408576698