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

Unified Diff: cc/output/renderer_capabilities_impl.h

Issue 2194013002: cc: Delete the Renderer base class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dcheck-delegating
Patch Set: delete-renderer-base-class: rebase Created 4 years, 4 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 | « cc/output/renderer.cc ('k') | cc/output/renderer_capabilities_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/renderer_capabilities_impl.h
diff --git a/cc/output/renderer_capabilities_impl.h b/cc/output/renderer_capabilities_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..f1ce345a22706283c0bac05232749c5f0b4a8fde
--- /dev/null
+++ b/cc/output/renderer_capabilities_impl.h
@@ -0,0 +1,38 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_
+#define CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_
+
+#include "cc/output/renderer_capabilities.h"
+
+namespace cc {
+
+struct RendererCapabilitiesImpl {
+ RendererCapabilitiesImpl();
+ ~RendererCapabilitiesImpl();
+
+ // Capabilities copied to main thread.
+ ResourceFormat best_texture_format = RGBA_8888;
+ bool allow_partial_texture_updates = false;
+ int max_texture_size = 0;
+ bool using_shared_memory_resources = false;
+
+ // Capabilities used on compositor thread only.
+ bool using_partial_swap = false;
+ // Whether it's valid to SwapBuffers with an empty rect. Trivially true when
+ // |using_partial_swap|.
+ bool allow_empty_swap = false;
+ bool using_egl_image = false;
+ bool using_image = false;
+ bool using_discard_framebuffer = false;
+ bool allow_rasterize_on_demand = false;
+ int max_msaa_samples = 0;
+
+ RendererCapabilities MainThreadCapabilities() const;
+};
+
+} // namespace cc
+
+#endif // CC_OUTPUT_RENDERER_CAPABILITIES_IMPL_H_
« no previous file with comments | « cc/output/renderer.cc ('k') | cc/output/renderer_capabilities_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698