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

Side by Side Diff: content/renderer/android/synchronous_compositor_frame_sink.cc

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)
Patch Set: Rebase + fix includes. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/android/synchronous_compositor_frame_sink.h" 5 #include "content/renderer/android/synchronous_compositor_frame_sink.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/location.h" 10 #include "base/location.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ptr_util.h" 13 #include "base/memory/ptr_util.h"
14 #include "base/single_thread_task_runner.h" 14 #include "base/single_thread_task_runner.h"
15 #include "base/threading/thread_task_runner_handle.h" 15 #include "base/threading/thread_task_runner_handle.h"
16 #include "cc/output/compositor_frame.h" 16 #include "cc/output/compositor_frame.h"
17 #include "cc/output/compositor_frame_sink_client.h" 17 #include "cc/output/compositor_frame_sink_client.h"
18 #include "cc/output/context_provider.h" 18 #include "cc/output/context_provider.h"
19 #include "cc/output/output_surface.h" 19 #include "cc/output/output_surface.h"
20 #include "cc/output/output_surface_frame.h"
20 #include "cc/output/renderer_settings.h" 21 #include "cc/output/renderer_settings.h"
21 #include "cc/output/software_output_device.h" 22 #include "cc/output/software_output_device.h"
22 #include "cc/output/texture_mailbox_deleter.h" 23 #include "cc/output/texture_mailbox_deleter.h"
23 #include "cc/surfaces/display.h" 24 #include "cc/surfaces/display.h"
24 #include "cc/surfaces/surface_factory.h" 25 #include "cc/surfaces/surface_factory.h"
25 #include "cc/surfaces/surface_id_allocator.h" 26 #include "cc/surfaces/surface_id_allocator.h"
26 #include "cc/surfaces/surface_manager.h" 27 #include "cc/surfaces/surface_manager.h"
27 #include "content/common/android/sync_compositor_messages.h" 28 #include "content/common/android/sync_compositor_messages.h"
28 #include "content/renderer/android/synchronous_compositor_filter.h" 29 #include "content/renderer/android/synchronous_compositor_filter.h"
29 #include "content/renderer/android/synchronous_compositor_registry.h" 30 #include "content/renderer/android/synchronous_compositor_registry.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 class SynchronousCompositorFrameSink::SoftwareOutputSurface 75 class SynchronousCompositorFrameSink::SoftwareOutputSurface
75 : public cc::OutputSurface { 76 : public cc::OutputSurface {
76 public: 77 public:
77 SoftwareOutputSurface(std::unique_ptr<SoftwareDevice> software_device) 78 SoftwareOutputSurface(std::unique_ptr<SoftwareDevice> software_device)
78 : cc::OutputSurface(std::move(software_device)) {} 79 : cc::OutputSurface(std::move(software_device)) {}
79 80
80 // cc::OutputSurface implementation. 81 // cc::OutputSurface implementation.
81 void EnsureBackbuffer() override {} 82 void EnsureBackbuffer() override {}
82 void DiscardBackbuffer() override {} 83 void DiscardBackbuffer() override {}
83 void BindFramebuffer() override {} 84 void BindFramebuffer() override {}
84 void SwapBuffers(cc::CompositorFrame frame) override {} 85 void SwapBuffers(cc::OutputSurfaceFrame frame) override {}
85 void Reshape(const gfx::Size& size, 86 void Reshape(const gfx::Size& size,
86 float scale_factor, 87 float scale_factor,
87 const gfx::ColorSpace& color_space, 88 const gfx::ColorSpace& color_space,
88 bool has_alpha) override { 89 bool has_alpha) override {
89 // Intentional no-op. Surface size controlled by embedder. 90 // Intentional no-op. Surface size controlled by embedder.
90 } 91 }
91 uint32_t GetFramebufferCopyTextureFormat() override { return 0; } 92 uint32_t GetFramebufferCopyTextureFormat() override { return 0; }
92 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { 93 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override {
93 return nullptr; 94 return nullptr;
94 } 95 }
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 client_->ReclaimResources(resources); 411 client_->ReclaimResources(resources);
411 } 412 }
412 413
413 void SynchronousCompositorFrameSink::SetBeginFrameSource( 414 void SynchronousCompositorFrameSink::SetBeginFrameSource(
414 cc::BeginFrameSource* begin_frame_source) { 415 cc::BeginFrameSource* begin_frame_source) {
415 // Software output is synchronous and doesn't use a BeginFrameSource. 416 // Software output is synchronous and doesn't use a BeginFrameSource.
416 NOTREACHED(); 417 NOTREACHED();
417 } 418 }
418 419
419 } // namespace content 420 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698