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

Side by Side Diff: blimp/client/feature/compositor/blimp_output_surface.h

Issue 2096493002: Make cc::CompositorFrames movable [Part 1 of 2] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dana's nits 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ 5 #ifndef BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_
6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ 6 #define BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "cc/output/output_surface.h" 12 #include "cc/output/output_surface.h"
13 13
14 namespace blimp { 14 namespace blimp {
15 namespace client { 15 namespace client {
16 class BlimpContextProvider; 16 class BlimpContextProvider;
17 17
18 // Minimal implementation of cc::OutputSurface. 18 // Minimal implementation of cc::OutputSurface.
19 class BlimpOutputSurface : public cc::OutputSurface { 19 class BlimpOutputSurface : public cc::OutputSurface {
20 public: 20 public:
21 explicit BlimpOutputSurface( 21 explicit BlimpOutputSurface(
22 scoped_refptr<BlimpContextProvider> context_provider); 22 scoped_refptr<BlimpContextProvider> context_provider);
23 ~BlimpOutputSurface() override; 23 ~BlimpOutputSurface() override;
24 24
25 // OutputSurface implementation. 25 // OutputSurface implementation.
26 void SwapBuffers(cc::CompositorFrame* frame) override; 26 void SwapBuffers(cc::CompositorFrame frame) override;
27 uint32_t GetFramebufferCopyTextureFormat() override; 27 uint32_t GetFramebufferCopyTextureFormat() override;
28 28
29 private: 29 private:
30 DISALLOW_COPY_AND_ASSIGN(BlimpOutputSurface); 30 DISALLOW_COPY_AND_ASSIGN(BlimpOutputSurface);
31 }; 31 };
32 32
33 } // namespace client 33 } // namespace client
34 } // namespace blimp 34 } // namespace blimp
35 35
36 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_ 36 #endif // BLIMP_CLIENT_FEATURE_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | blimp/client/feature/compositor/blimp_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698