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

Unified Diff: ui/gl/gl_context_cgl.h

Issue 2627323007: Migrate WebGL contexts on backgrounded tabs to the integrated GPU.
Patch Set: Created 3 years, 11 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/gl/gl_context_cgl.h
diff --git a/ui/gl/gl_context_cgl.h b/ui/gl/gl_context_cgl.h
index 72fbb4d6c8cf92b3d659a199ac5b735710d6cb18..5694effc931df6f9162e28ea0f19a67ebd8271da 100644
--- a/ui/gl/gl_context_cgl.h
+++ b/ui/gl/gl_context_cgl.h
@@ -33,6 +33,7 @@ class GL_EXPORT GLContextCGL : public GLContextReal {
void SetSafeToForceGpuSwitch() override;
bool ForceGpuSwitchIfNeeded() override;
YUVToRGBConverter* GetYUVToRGBConverter() override;
+ void SetPerformancePreference(GpuPerformancePreference pref) override;
protected:
~GLContextCGL() override;
@@ -41,6 +42,9 @@ class GL_EXPORT GLContextCGL : public GLContextReal {
void Destroy();
GpuPreference GetGpuPreference();
+ bool AllocateDiscretePixelFormat();
+ void ReleaseDiscretePixelFormat();
+
void* context_;
GpuPreference gpu_preference_;
std::unique_ptr<YUVToRGBConverter> yuv_to_rgb_converter_;
« no previous file with comments | « ui/gl/gl_context.cc ('k') | ui/gl/gl_context_cgl.cc » ('j') | ui/gl/gl_context_cgl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698