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

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

Issue 2646243002: Use IDCompositionSurface to implement DirectCompositionSurfaceWin. (Closed)
Patch Set: rebase Created 3 years, 9 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
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | gpu/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 : public cc::OutputSurface { 79 : public cc::OutputSurface {
80 public: 80 public:
81 SoftwareOutputSurface(std::unique_ptr<SoftwareDevice> software_device) 81 SoftwareOutputSurface(std::unique_ptr<SoftwareDevice> software_device)
82 : cc::OutputSurface(std::move(software_device)) {} 82 : cc::OutputSurface(std::move(software_device)) {}
83 83
84 // cc::OutputSurface implementation. 84 // cc::OutputSurface implementation.
85 void BindToClient(cc::OutputSurfaceClient* client) override {} 85 void BindToClient(cc::OutputSurfaceClient* client) override {}
86 void EnsureBackbuffer() override {} 86 void EnsureBackbuffer() override {}
87 void DiscardBackbuffer() override {} 87 void DiscardBackbuffer() override {}
88 void BindFramebuffer() override {} 88 void BindFramebuffer() override {}
89 void SetDrawRectangle(const gfx::Rect& rect) override {}
89 void SwapBuffers(cc::OutputSurfaceFrame frame) override {} 90 void SwapBuffers(cc::OutputSurfaceFrame frame) override {}
90 void Reshape(const gfx::Size& size, 91 void Reshape(const gfx::Size& size,
91 float scale_factor, 92 float scale_factor,
92 const gfx::ColorSpace& color_space, 93 const gfx::ColorSpace& color_space,
93 bool has_alpha, 94 bool has_alpha,
94 bool use_stencil) override {} 95 bool use_stencil) override {}
95 uint32_t GetFramebufferCopyTextureFormat() override { return 0; } 96 uint32_t GetFramebufferCopyTextureFormat() override { return 0; }
96 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override { 97 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override {
97 return nullptr; 98 return nullptr;
98 } 99 }
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 const cc::ReturnedResourceArray& resources) { 470 const cc::ReturnedResourceArray& resources) {
470 DCHECK(resources.empty()); 471 DCHECK(resources.empty());
471 client_->ReclaimResources(resources); 472 client_->ReclaimResources(resources);
472 } 473 }
473 474
474 void SynchronousCompositorFrameSink::WillDrawSurface( 475 void SynchronousCompositorFrameSink::WillDrawSurface(
475 const cc::LocalSurfaceId& local_surface_id, 476 const cc::LocalSurfaceId& local_surface_id,
476 const gfx::Rect& damage_rect) {} 477 const gfx::Rect& damage_rect) {}
477 478
478 } // namespace content 479 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/compositor_impl_android.cc ('k') | gpu/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698