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

Unified Diff: ui/compositor/test/in_process_context_factory.cc

Issue 2089753003: cc: Use the correct internal format for glCopyTexImage2D calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: copytextureformat: bufferqueue Created 4 years, 6 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: ui/compositor/test/in_process_context_factory.cc
diff --git a/ui/compositor/test/in_process_context_factory.cc b/ui/compositor/test/in_process_context_factory.cc
index e68752f8f9c473c02d83e23eb81cbeedbf48377c..cc4bc2921238191e7cd9b4dad66caa54c22968f2 100644
--- a/ui/compositor/test/in_process_context_factory.cc
+++ b/ui/compositor/test/in_process_context_factory.cc
@@ -50,8 +50,8 @@ class FakeReflector : public Reflector {
class DirectOutputSurface : public cc::OutputSurface {
public:
DirectOutputSurface(
- scoped_refptr<cc::ContextProvider> context_provider,
- scoped_refptr<cc::ContextProvider> worker_context_provider)
+ scoped_refptr<InProcessContextProvider> context_provider,
+ scoped_refptr<InProcessContextProvider> worker_context_provider)
: cc::OutputSurface(std::move(context_provider),
std::move(worker_context_provider),
nullptr),
@@ -59,7 +59,7 @@ class DirectOutputSurface : public cc::OutputSurface {
~DirectOutputSurface() override {}
- // cc::OutputSurface implementation
+ // cc::OutputSurface implementation.
bool BindToClient(cc::OutputSurfaceClient* client) override {
if (!OutputSurface::BindToClient(client))
return false;
@@ -87,6 +87,10 @@ class DirectOutputSurface : public cc::OutputSurface {
weak_ptr_factory_.GetWeakPtr()));
client_->DidSwapBuffers();
}
+ uint32_t GetFramebufferCopyTextureFormat() override {
+ auto* gl = static_cast<InProcessContextProvider*>(context_provider());
+ return gl->GetCopyTextureInternalFormat();
+ }
private:
base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698