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

Unified Diff: ui/compositor/test/in_process_context_provider.h

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: comments 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
« no previous file with comments | « ui/compositor/test/in_process_context_factory.cc ('k') | ui/compositor/test/in_process_context_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/test/in_process_context_provider.h
diff --git a/ui/compositor/test/in_process_context_provider.h b/ui/compositor/test/in_process_context_provider.h
index 7e20ed1100e732f179bf1358ba7f6b5876c8bbd8..b08c33c7baf257d055feb316c1c9bbefc46e2290 100644
--- a/ui/compositor/test/in_process_context_provider.h
+++ b/ui/compositor/test/in_process_context_provider.h
@@ -45,7 +45,7 @@ class InProcessContextProvider : public cc::ContextProvider {
gpu::ImageFactory* image_factory,
InProcessContextProvider* shared_context);
- // cc::ContextProvider:
+ // cc::ContextProvider implementation.
bool BindToCurrentThread() override;
void DetachFromThread() override;
gpu::Capabilities ContextCapabilities() override;
@@ -58,6 +58,10 @@ class InProcessContextProvider : public cc::ContextProvider {
void SetLostContextCallback(
const LostContextCallback& lost_context_callback) override;
+ // Gives the GL internal format that should be used for calling CopyTexImage2D
+ // on the default framebuffer.
+ uint32_t GetCopyTextureInternalFormat();
+
private:
InProcessContextProvider(
const gpu::gles2::ContextCreationAttribHelper& attribs,
« no previous file with comments | « ui/compositor/test/in_process_context_factory.cc ('k') | ui/compositor/test/in_process_context_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698