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

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

Issue 2208693003: Revert of cc: Make LayerTreeTests use a DelegatingRenderer and Display. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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.
78 } 77 }
79 78
80 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() { 79 TestWebGraphicsContext3D::~TestWebGraphicsContext3D() {
81 base::AutoLock lock(g_shared_namespace_lock.Get()); 80 base::AutoLock lock(g_shared_namespace_lock.Get());
82 namespace_ = NULL; 81 namespace_ = NULL;
83 } 82 }
84 83
85 void TestWebGraphicsContext3D::CreateNamespace() { 84 void TestWebGraphicsContext3D::CreateNamespace() {
86 base::AutoLock lock(g_shared_namespace_lock.Get()); 85 base::AutoLock lock(g_shared_namespace_lock.Get());
87 if (shared_namespace_) { 86 if (shared_namespace_) {
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 824
826 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {} 825 TestWebGraphicsContext3D::Buffer::Buffer() : target(0), size(0) {}
827 826
828 TestWebGraphicsContext3D::Buffer::~Buffer() {} 827 TestWebGraphicsContext3D::Buffer::~Buffer() {}
829 828
830 TestWebGraphicsContext3D::Image::Image() {} 829 TestWebGraphicsContext3D::Image::Image() {}
831 830
832 TestWebGraphicsContext3D::Image::~Image() {} 831 TestWebGraphicsContext3D::Image::~Image() {}
833 832
834 } // namespace cc 833 } // 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