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

Unified Diff: cc/test/test_web_graphics_context_3d.cc

Issue 99253004: cc: Allow copy requests to provide a texture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mailbox: Created 7 years 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
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_web_graphics_context_3d.cc
diff --git a/cc/test/test_web_graphics_context_3d.cc b/cc/test/test_web_graphics_context_3d.cc
index 57183d333308fcccf1ad033415b96ffe1861dfe0..3157e2786bd7e100239ebe332fed8ab1af778f80 100644
--- a/cc/test/test_web_graphics_context_3d.cc
+++ b/cc/test/test_web_graphics_context_3d.cc
@@ -79,6 +79,8 @@ TestWebGraphicsContext3D::TestWebGraphicsContext3D()
scale_factor_(-1.f),
test_support_(NULL),
last_update_type_(NoUpdate),
+ next_insert_sync_point_(1),
+ last_waited_sync_point_(0),
bound_buffer_(0),
peak_transfer_buffer_memory_used_bytes_(0),
weak_ptr_factory_(this) {
@@ -605,6 +607,15 @@ void TestWebGraphicsContext3D::unmapImageCHROMIUM(
DCHECK_GT(namespace_->images.count(image_id), 0u);
}
+unsigned TestWebGraphicsContext3D::insertSyncPoint() {
+ return next_insert_sync_point_++;
+}
+
+void TestWebGraphicsContext3D::waitSyncPoint(unsigned sync_point) {
+ if (sync_point)
+ last_waited_sync_point_ = sync_point;
+}
+
size_t TestWebGraphicsContext3D::NumTextures() const {
base::AutoLock lock(namespace_->lock);
return namespace_->textures.Size();
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | cc/trees/layer_tree_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698