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

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

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_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host_impl.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 #include "cc/test/test_web_graphics_context_3d.h" 5 #include "cc/test/test_web_graphics_context_3d.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 730 matching lines...) Expand 10 before | Expand all | Expand 10 after
741 return id; 741 return id;
742 } 742 }
743 743
744 void TestWebGraphicsContext3D::RetireRenderbufferId(GLuint id) { 744 void TestWebGraphicsContext3D::RetireRenderbufferId(GLuint id) {
745 base::AutoLock lock_for_renderbuffer_access(namespace_->lock); 745 base::AutoLock lock_for_renderbuffer_access(namespace_->lock);
746 DCHECK(namespace_->renderbuffer_set.find(id) != 746 DCHECK(namespace_->renderbuffer_set.find(id) !=
747 namespace_->renderbuffer_set.end()); 747 namespace_->renderbuffer_set.end());
748 namespace_->renderbuffer_set.erase(id); 748 namespace_->renderbuffer_set.erase(id);
749 } 749 }
750 750
751 void TestWebGraphicsContext3D::SetMaxTransferBufferUsageBytes(
752 size_t max_transfer_buffer_usage_bytes) {
753 test_capabilities_.max_transfer_buffer_usage_bytes =
754 max_transfer_buffer_usage_bytes;
755 }
756
757 void TestWebGraphicsContext3D::SetMaxSamples(int max_samples) { 751 void TestWebGraphicsContext3D::SetMaxSamples(int max_samples) {
758 test_capabilities_.gpu.max_samples = max_samples; 752 test_capabilities_.gpu.max_samples = max_samples;
759 } 753 }
760 754
761 TestWebGraphicsContext3D::TextureTargets::TextureTargets() { 755 TestWebGraphicsContext3D::TextureTargets::TextureTargets() {
762 // Initialize default bindings. 756 // Initialize default bindings.
763 bound_textures_[GL_TEXTURE_2D] = 0; 757 bound_textures_[GL_TEXTURE_2D] = 0;
764 bound_textures_[GL_TEXTURE_EXTERNAL_OES] = 0; 758 bound_textures_[GL_TEXTURE_EXTERNAL_OES] = 0;
765 bound_textures_[GL_TEXTURE_RECTANGLE_ARB] = 0; 759 bound_textures_[GL_TEXTURE_RECTANGLE_ARB] = 0;
766 } 760 }
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 810
817 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} 811 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {}
818 812
819 TestWebGraphicsContext3D::Buffer::~Buffer() {} 813 TestWebGraphicsContext3D::Buffer::~Buffer() {}
820 814
821 TestWebGraphicsContext3D::Image::Image() {} 815 TestWebGraphicsContext3D::Image::Image() {}
822 816
823 TestWebGraphicsContext3D::Image::~Image() {} 817 TestWebGraphicsContext3D::Image::~Image() {}
824 818
825 } // namespace cc 819 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698