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

Unified Diff: cc/test/test_context_support.h

Issue 1533773002: Delete CC. (Closed) Base URL: git@github.com:domokit/mojo.git@cl-2e
Patch Set: rebase Created 5 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_context_provider.cc ('k') | cc/test/test_context_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/test_context_support.h
diff --git a/cc/test/test_context_support.h b/cc/test/test_context_support.h
deleted file mode 100644
index 307b8819cd996baeb6114d18218c3ee525219283..0000000000000000000000000000000000000000
--- a/cc/test/test_context_support.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_TEST_TEST_CONTEXT_SUPPORT_H_
-#define CC_TEST_TEST_CONTEXT_SUPPORT_H_
-
-#include <vector>
-
-#include "base/memory/weak_ptr.h"
-#include "gpu/command_buffer/client/context_support.h"
-
-namespace cc {
-
-class TestContextSupport : public gpu::ContextSupport {
- public:
- TestContextSupport();
- ~TestContextSupport() override;
-
- // gpu::ContextSupport implementation.
- void SignalSyncPoint(uint32 sync_point,
- const base::Closure& callback) override;
- void SignalQuery(uint32 query, const base::Closure& callback) override;
- void SetSurfaceVisible(bool visible) override;
- void Swap() override;
- void PartialSwapBuffers(const gfx::Rect& sub_buffer) override;
- uint32 InsertFutureSyncPointCHROMIUM() override;
- void RetireSyncPointCHROMIUM(uint32 sync_point) override;
- void ScheduleOverlayPlane(int plane_z_order,
- gfx::OverlayTransform plane_transform,
- unsigned overlay_texture_id,
- const gfx::Rect& display_bounds,
- const gfx::RectF& uv_rect) override;
-
- void CallAllSyncPointCallbacks();
-
- typedef base::Callback<void(bool visible)> SurfaceVisibleCallback;
- void SetSurfaceVisibleCallback(
- const SurfaceVisibleCallback& set_visible_callback);
-
- typedef base::Callback<void(int plane_z_order,
- gfx::OverlayTransform plane_transform,
- unsigned overlay_texture_id,
- const gfx::Rect& display_bounds,
- const gfx::RectF& crop_rect)>
- ScheduleOverlayPlaneCallback;
- void SetScheduleOverlayPlaneCallback(
- const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback);
-
- private:
- std::vector<base::Closure> sync_point_callbacks_;
- SurfaceVisibleCallback set_visible_callback_;
- ScheduleOverlayPlaneCallback schedule_overlay_plane_callback_;
-
- base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_;
-
- DISALLOW_COPY_AND_ASSIGN(TestContextSupport);
-};
-
-} // namespace cc
-
-#endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/test/test_context_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698