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

Side by Side Diff: cc/test/test_web_graphics_context_3d.h

Issue 1235203003: WIP cc: remove unused and legacy GetMappedMemoryLimit code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « cc/test/test_context_provider.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 5 #ifndef CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 6 #define CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 352
353 virtual GLuint NextImageId(); 353 virtual GLuint NextImageId();
354 virtual void RetireImageId(GLuint id); 354 virtual void RetireImageId(GLuint id);
355 355
356 virtual GLuint NextFramebufferId(); 356 virtual GLuint NextFramebufferId();
357 virtual void RetireFramebufferId(GLuint id); 357 virtual void RetireFramebufferId(GLuint id);
358 358
359 virtual GLuint NextRenderbufferId(); 359 virtual GLuint NextRenderbufferId();
360 virtual void RetireRenderbufferId(GLuint id); 360 virtual void RetireRenderbufferId(GLuint id);
361 361
362 void SetMaxTransferBufferUsageBytes(size_t max_transfer_buffer_usage_bytes);
363 size_t max_used_transfer_buffer_usage_bytes() const {
364 return max_used_transfer_buffer_usage_bytes_;
365 }
366
367 void SetMaxSamples(int max_samples); 362 void SetMaxSamples(int max_samples);
368 void set_test_support(TestContextSupport* test_support) { 363 void set_test_support(TestContextSupport* test_support) {
369 test_support_ = test_support; 364 test_support_ = test_support;
370 } 365 }
371 366
372 int width() const { return width_; } 367 int width() const { return width_; }
373 int height() const { return height_; } 368 int height() const { return height_; }
374 bool reshape_called() const { return reshape_called_; } 369 bool reshape_called() const { return reshape_called_; }
375 void clear_reshape_called() { reshape_called_ = false; } 370 void clear_reshape_called() { reshape_called_ = false; }
376 float scale_factor() const { return scale_factor_; } 371 float scale_factor() const { return scale_factor_; }
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 476
482 scoped_refptr<Namespace> namespace_; 477 scoped_refptr<Namespace> namespace_;
483 static Namespace* shared_namespace_; 478 static Namespace* shared_namespace_;
484 479
485 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_; 480 base::WeakPtrFactory<TestWebGraphicsContext3D> weak_ptr_factory_;
486 }; 481 };
487 482
488 } // namespace cc 483 } // namespace cc
489 484
490 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_ 485 #endif // CC_TEST_TEST_WEB_GRAPHICS_CONTEXT_3D_H_
OLDNEW
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/test/test_web_graphics_context_3d.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698