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

Side by Side Diff: mojo/converters/surfaces/custom_surface_converter.h

Issue 1406153004: components/mus/public/interfaces View => Window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Yet another rebase Created 5 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 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 MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_ 5 #ifndef MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_
6 #define MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_ 6 #define MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_
7 7
8 namespace cc { 8 namespace cc {
9 class RenderPass; 9 class RenderPass;
10 class SharedQuadState; 10 class SharedQuadState;
11 } // namespace cc 11 } // namespace cc
12 12
13 namespace mojo { 13 namespace mojo {
14 14
15 // Classes that inherit from this converter can override the default behavior 15 // Classes that inherit from this converter can override the default behavior
16 // for converting a mojo::SurfaceDrawState to something cc understands. 16 // for converting a mojo::SurfaceDrawState to something cc understands.
17 class CustomSurfaceConverter { 17 class CustomSurfaceConverter {
18 public: 18 public:
19 virtual bool ConvertSurfaceDrawQuad( 19 virtual bool ConvertSurfaceDrawQuad(
20 const QuadPtr& input, 20 const mus::mojom::QuadPtr& input,
21 const CompositorFrameMetadataPtr& metadata, 21 const mus::mojom::CompositorFrameMetadataPtr& metadata,
22 cc::SharedQuadState* sqs, 22 cc::SharedQuadState* sqs,
23 cc::RenderPass* render_pass) = 0; 23 cc::RenderPass* render_pass) = 0;
24 24
25 protected: 25 protected:
26 virtual ~CustomSurfaceConverter() {} 26 virtual ~CustomSurfaceConverter() {}
27 }; 27 };
28 28
29 } // namespace mojo 29 } // namespace mojo
30 30
31 #endif // MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_ 31 #endif // MOJO_CONVERTERS_SURFACES_CUSTOM_SURFACE_CONVERTER_H_
OLDNEW
« no previous file with comments | « mandoline/ui/phone_ui/phone_browser_application_delegate.h ('k') | mojo/converters/surfaces/surfaces_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698