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

Unified Diff: cc/test/test_context_support.h

Issue 619453002: gpu: Remove Echo and SwapCompletion GL interfacess (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tits
Patch Set: rebase Created 6 years, 3 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
Index: cc/test/test_context_support.h
diff --git a/cc/test/test_context_support.h b/cc/test/test_context_support.h
index 1349053e920bad85ef3da1d6c781edbb4da46bf3..25be0b2a0851c6bfb1bb89a20d20772e78056872 100644
--- a/cc/test/test_context_support.h
+++ b/cc/test/test_context_support.h
@@ -23,12 +23,8 @@ class TestContextSupport : public gpu::ContextSupport {
virtual void SignalQuery(uint32 query,
const base::Closure& callback) OVERRIDE;
virtual void SetSurfaceVisible(bool visible) OVERRIDE;
- virtual void Swap() OVERRIDE;
- virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) OVERRIDE;
virtual uint32 InsertFutureSyncPointCHROMIUM() OVERRIDE;
virtual void RetireSyncPointCHROMIUM(uint32 sync_point) OVERRIDE;
- virtual void SetSwapBuffersCompleteCallback(
- const base::Closure& callback) OVERRIDE;
virtual void ScheduleOverlayPlane(int plane_z_order,
gfx::OverlayTransform plane_transform,
unsigned overlay_texture_id,
@@ -50,29 +46,11 @@ class TestContextSupport : public gpu::ContextSupport {
void SetScheduleOverlayPlaneCallback(
const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback);
- enum SwapType {
- NO_SWAP,
- SWAP,
- PARTIAL_SWAP
- };
-
- SwapType last_swap_type() const { return last_swap_type_; }
- gfx::Rect last_partial_swap_rect() const {
- return last_partial_swap_rect_;
- }
-
private:
- void OnSwapBuffersComplete();
-
std::vector<base::Closure> sync_point_callbacks_;
SurfaceVisibleCallback set_visible_callback_;
ScheduleOverlayPlaneCallback schedule_overlay_plane_callback_;
- base::Closure swap_buffers_complete_callback_;
-
- SwapType last_swap_type_;
- gfx::Rect last_partial_swap_rect_;
-
base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(TestContextSupport);

Powered by Google App Engine
This is Rietveld 408576698