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

Unified Diff: cc/trees/layer_tree_host_perftest.cc

Issue 1608303002: Removed OLD_SYNC_POINT sync token namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed cc_perftests, formatted Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/render_pass_test_utils.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_perftest.cc
diff --git a/cc/trees/layer_tree_host_perftest.cc b/cc/trees/layer_tree_host_perftest.cc
index 9f3f3ac693699e48c17cd177d1b8c15d35843faf..46074013b70489f94f7e49a7fedb6b5fde287b91 100644
--- a/cc/trees/layer_tree_host_perftest.cc
+++ b/cc/trees/layer_tree_host_perftest.cc
@@ -272,7 +272,7 @@ class BrowserCompositorInvalidateLayerTreePerfTest
public:
BrowserCompositorInvalidateLayerTreePerfTest()
: LayerTreeHostPerfTestJsonReader(),
- next_sync_point_(1),
+ next_fence_sync_(1),
clean_up_started_(false) {}
void BuildTree() override {
@@ -291,14 +291,17 @@ class BrowserCompositorInvalidateLayerTreePerfTest
return;
gpu::Mailbox gpu_mailbox;
std::ostringstream name_stream;
- name_stream << "name" << next_sync_point_;
+ name_stream << "name" << next_fence_sync_;
gpu_mailbox.SetName(
reinterpret_cast<const int8_t*>(name_stream.str().c_str()));
scoped_ptr<SingleReleaseCallback> callback = SingleReleaseCallback::Create(
base::Bind(&EmptyReleaseCallback));
- TextureMailbox mailbox(gpu_mailbox, gpu::SyncToken(next_sync_point_),
- GL_TEXTURE_2D);
- next_sync_point_++;
+
+ gpu::SyncToken next_sync_token(gpu::CommandBufferNamespace::GPU_IO, 0, 1,
+ next_fence_sync_);
+ next_sync_token.SetVerifyFlush();
+ TextureMailbox mailbox(gpu_mailbox, next_sync_token, GL_TEXTURE_2D);
+ next_fence_sync_++;
tab_contents_->SetTextureMailbox(mailbox, std::move(callback));
}
@@ -327,7 +330,7 @@ class BrowserCompositorInvalidateLayerTreePerfTest
private:
scoped_refptr<TextureLayer> tab_contents_;
- unsigned next_sync_point_;
+ uint64_t next_fence_sync_;
bool clean_up_started_;
};
« no previous file with comments | « cc/test/render_pass_test_utils.cc ('k') | cc/trees/layer_tree_host_unittest_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698