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

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

Issue 1477593002: gpu: Initial implementation of CommitOverlayPlanes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-cop-command
Patch Set: typo 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 unified diff | Download patch
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_context_support.h" 5 #include "cc/test/test_context_support.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 return 0; 84 return 0;
85 } 85 }
86 86
87 void TestContextSupport::RetireSyncPointCHROMIUM(uint32 sync_point) { 87 void TestContextSupport::RetireSyncPointCHROMIUM(uint32 sync_point) {
88 NOTIMPLEMENTED(); 88 NOTIMPLEMENTED();
89 } 89 }
90 90
91 void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) { 91 void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) {
92 } 92 }
93 93
94 void TestContextSupport::CommitOverlayPlanes() {}
95
94 void TestContextSupport::ScheduleOverlayPlane( 96 void TestContextSupport::ScheduleOverlayPlane(
95 int plane_z_order, 97 int plane_z_order,
96 gfx::OverlayTransform plane_transform, 98 gfx::OverlayTransform plane_transform,
97 unsigned overlay_texture_id, 99 unsigned overlay_texture_id,
98 const gfx::Rect& display_bounds, 100 const gfx::Rect& display_bounds,
99 const gfx::RectF& uv_rect) { 101 const gfx::RectF& uv_rect) {
100 if (!schedule_overlay_plane_callback_.is_null()) { 102 if (!schedule_overlay_plane_callback_.is_null()) {
101 schedule_overlay_plane_callback_.Run(plane_z_order, 103 schedule_overlay_plane_callback_.Run(plane_z_order,
102 plane_transform, 104 plane_transform,
103 overlay_texture_id, 105 overlay_texture_id,
104 display_bounds, 106 display_bounds,
105 uv_rect); 107 uv_rect);
106 } 108 }
107 } 109 }
108 110
109 uint64_t TestContextSupport::ShareGroupTracingGUID() const { 111 uint64_t TestContextSupport::ShareGroupTracingGUID() const {
110 NOTIMPLEMENTED(); 112 NOTIMPLEMENTED();
111 return 0; 113 return 0;
112 } 114 }
113 115
114 } // namespace cc 116 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698