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

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

Issue 2193293004: cc: Make LayerTreeTests use a DelegatingRenderer and Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: display-layertreetest: withperftestsfix 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 | « cc/test/test_hooks.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 <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 height_(0), 67 height_(0),
68 scale_factor_(-1.f), 68 scale_factor_(-1.f),
69 test_support_(NULL), 69 test_support_(NULL),
70 last_update_type_(NO_UPDATE), 70 last_update_type_(NO_UPDATE),
71 next_insert_fence_sync_(1), 71 next_insert_fence_sync_(1),
72 unpack_alignment_(4), 72 unpack_alignment_(4),
73 bound_buffer_(0), 73 bound_buffer_(0),
74 weak_ptr_factory_(this) { 74 weak_ptr_factory_(this) {
75 CreateNamespace(); 75 CreateNamespace();
76 set_support_image(true); 76 set_support_image(true);
77 set_have_extension_egl_image(true); // For stream textures.
77 } 78 }
78 79
79 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() { 80 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() {
80 base::AutoLock lock(g_shared_namespace_lock.Get()); 81 base::AutoLock lock(g_shared_namespace_lock.Get());
81 namespace_ = NULL; 82 namespace_ = NULL;
82 } 83 }
83 84
84 void TestWebGraphicsContext3D::CreateNamespace() { 85 void TestWebGraphicsContext3D::CreateNamespace() {
85 base::AutoLock lock(g_shared_namespace_lock.Get()); 86 base::AutoLock lock(g_shared_namespace_lock.Get());
86 if (shared_namespace_) { 87 if (shared_namespace_) {
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 825
825 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} 826 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {}
826 827
827 TestWebGraphicsContext3D::Buffer::~Buffer() {} 828 TestWebGraphicsContext3D::Buffer::~Buffer() {}
828 829
829 TestWebGraphicsContext3D::Image::Image() {} 830 TestWebGraphicsContext3D::Image::Image() {}
830 831
831 TestWebGraphicsContext3D::Image::~Image() {} 832 TestWebGraphicsContext3D::Image::~Image() {}
832 833
833 } // namespace cc 834 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_hooks.h ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698