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

Unified Diff: cc/output/in_process_context_provider.cc

Issue 2529703002: Mus: Install SwapBuffersCompleted/VSync callbacks to DirectOutputSurface(Ozone) (Closed)
Patch Set: Grab capabilities from the InProcessCommandBuffer instead of making them up Created 4 years, 1 month 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 | « no previous file | gpu/ipc/gl_in_process_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/in_process_context_provider.cc
diff --git a/cc/output/in_process_context_provider.cc b/cc/output/in_process_context_provider.cc
index 999b7c7b51c7cbe587e42ce828f1e9046bcfb34b..c98a4f1a73f6f63178b427dd09df97882986fd26 100644
--- a/cc/output/in_process_context_provider.cc
+++ b/cc/output/in_process_context_provider.cc
@@ -121,18 +121,7 @@ base::Lock* InProcessContextProvider::GetLock() {
}
gpu::Capabilities InProcessContextProvider::ContextCapabilities() {
- gpu::Capabilities capabilities;
- capabilities.texture_rectangle = true;
- capabilities.sync_query = true;
- switch (PlatformColor::Format()) {
- case PlatformColor::SOURCE_FORMAT_RGBA8:
- capabilities.texture_format_bgra8888 = false;
- break;
- case PlatformColor::SOURCE_FORMAT_BGRA8:
- capabilities.texture_format_bgra8888 = true;
- break;
- }
- return capabilities;
+ return context_->GetCapabilities();
}
void InProcessContextProvider::SetLostContextCallback(
« no previous file with comments | « no previous file | gpu/ipc/gl_in_process_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698