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

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

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) { 80 void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) {
81 } 81 }
82 82
83 void TestContextSupport::CommitOverlayPlanes() {} 83 void TestContextSupport::CommitOverlayPlanes() {}
84 84
85 void TestContextSupport::ScheduleOverlayPlane( 85 void TestContextSupport::ScheduleOverlayPlane(
86 int plane_z_order, 86 int plane_z_order,
87 gfx::OverlayTransform plane_transform, 87 gfx::OverlayTransform plane_transform,
88 gfx::BufferFormat storage_format,
88 unsigned overlay_texture_id, 89 unsigned overlay_texture_id,
89 const gfx::Rect& display_bounds, 90 const gfx::Rect& display_bounds,
90 const gfx::RectF& uv_rect) { 91 const gfx::RectF& uv_rect,
92 bool handle_scaling) {
91 if (!schedule_overlay_plane_callback_.is_null()) { 93 if (!schedule_overlay_plane_callback_.is_null()) {
92 schedule_overlay_plane_callback_.Run(plane_z_order, 94 schedule_overlay_plane_callback_.Run(
93 plane_transform, 95 plane_z_order, plane_transform, storage_format, overlay_texture_id,
94 overlay_texture_id, 96 display_bounds, uv_rect, handle_scaling);
95 display_bounds,
96 uv_rect);
97 } 97 }
98 } 98 }
99 99
100 uint64_t TestContextSupport::ShareGroupTracingGUID() const { 100 uint64_t TestContextSupport::ShareGroupTracingGUID() const {
101 NOTIMPLEMENTED(); 101 NOTIMPLEMENTED();
102 return 0; 102 return 0;
103 } 103 }
104 104
105 } // namespace cc 105 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/test_context_support.h ('k') | content/browser/compositor/browser_compositor_overlay_candidate_validator_ozone.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698