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

Unified Diff: cc/output/overlay_unittest.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: 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 | « cc/output/output_surface_unittest.cc ('k') | cc/output/renderer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/overlay_unittest.cc
diff --git a/cc/output/overlay_unittest.cc b/cc/output/overlay_unittest.cc
index 7908ced03082975bb212e3f2a9713930dfe3d93c..3d4b9af638080e0eff757eb0255d038ce55d4baf 100644
--- a/cc/output/overlay_unittest.cc
+++ b/cc/output/overlay_unittest.cc
@@ -133,8 +133,9 @@ size_t DefaultOverlayProcessor::GetStrategyCount() {
class OverlayOutputSurface : public OutputSurface {
public:
- explicit OverlayOutputSurface(scoped_refptr<ContextProvider> context_provider)
- : OutputSurface(context_provider, nullptr, nullptr) {
+ explicit OverlayOutputSurface(
+ scoped_refptr<TestContextProvider> context_provider)
+ : OutputSurface(std::move(context_provider), nullptr, nullptr) {
surface_size_ = kDisplaySize;
device_scale_factor_ = 1;
is_displayed_as_overlay_plane_ = true;
@@ -149,6 +150,10 @@ class OverlayOutputSurface : public OutputSurface {
OutputSurface::BindFramebuffer();
bind_framebuffer_count_ += 1;
}
+ uint32_t GetFramebufferCopyTextureFormat() override {
+ // TestContextProvider has no real framebuffer, just use RGB.
+ return GL_RGB;
+ }
void SwapBuffers(CompositorFrame* frame) override {
client_->DidSwapBuffers();
}
« no previous file with comments | « cc/output/output_surface_unittest.cc ('k') | cc/output/renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698