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

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

Issue 1295243003: Initial commit of the blimp/ folder and target (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef BLIMP_CLIENT_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_
6 #define BLIMP_CLIENT_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_
7
8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h"
11 #include "cc/output/output_surface.h"
12
13 namespace blimp {
14
15 // A simple class with the basic implementation required for a
16 // cc::OutputSurface.
Wez 2015/08/27 18:23:55 nit: We can see it's a simple class, suggest reduc
David Trainor- moved to gerrit 2015/08/28 01:23:47 Done.
17 class BlimpOutputSurface : public cc::OutputSurface {
18 public:
19 explicit BlimpOutputSurface(
20 const scoped_refptr<cc::ContextProvider>& context_provider);
21 ~BlimpOutputSurface() override;
22
23 // OutputSurface Implementation ----------------------------------------------
Wez 2015/08/27 18:23:55 nit: See my comment style whinges elsewhere. :)
David Trainor- moved to gerrit 2015/08/28 01:23:47 Done.
24 void SwapBuffers(cc::CompositorFrame* frame) override;
25
26 private:
27 base::WeakPtrFactory<BlimpOutputSurface> weak_factory_;
28
29 DISALLOW_COPY_AND_ASSIGN(BlimpOutputSurface);
30 };
31
32 } // namespace blimp
33
34 #endif // BLIMP_CLIENT_COMPOSITOR_BLIMP_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698