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

Side by Side Diff: ui/ozone/public/native_pixmap_manager.cc

Issue 1134993003: ozone: Implement zero/one-copy texture for Ozone GBM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase to ToT Created 5 years, 5 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 #include "ui/ozone/public/native_pixmap_manager.h" 5 #include "ui/ozone/public/native_pixmap_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/trace_event/trace_event.h" 9 #include "base/trace_event/trace_event.h"
10 #include "ui/ozone/platform_object.h" 10 #include "ui/ozone/platform_object.h"
(...skipping 10 matching lines...) Expand all
21 StubNativePixmapManager() {} 21 StubNativePixmapManager() {}
22 ~StubNativePixmapManager() override {} 22 ~StubNativePixmapManager() override {}
23 23
24 void Initialize(const base::FileDescriptor& device_fd) override {} 24 void Initialize(const base::FileDescriptor& device_fd) override {}
25 25
26 std::vector<Configuration> GetSupportedNativePixmapConfigurations() 26 std::vector<Configuration> GetSupportedNativePixmapConfigurations()
27 const override { 27 const override {
28 return std::vector<Configuration>(); 28 return std::vector<Configuration>();
29 } 29 }
30 30
31 scoped_refptr<NativePixmap> CreateFromFileDescriptor(
32 base::FileDescriptor handle,
33 gfx::Size size,
34 SurfaceFactoryOzone::BufferFormat format,
35 SurfaceFactoryOzone::BufferUsage usage) override {
36 return nullptr;
37 }
38
31 private: 39 private:
32 DISALLOW_COPY_AND_ASSIGN(StubNativePixmapManager); 40 DISALLOW_COPY_AND_ASSIGN(StubNativePixmapManager);
33 }; 41 };
34 42
35 NativePixmapManager* g_instance = nullptr; 43 NativePixmapManager* g_instance = nullptr;
36 44
37 } // namespace 45 } // namespace
38 46
39 // static 47 // static
40 NativePixmapManager* NativePixmapManager::GetInstance() { 48 NativePixmapManager* NativePixmapManager::GetInstance() {
(...skipping 22 matching lines...) Expand all
63 } 71 }
64 72
65 NativePixmapManager::~NativePixmapManager() { 73 NativePixmapManager::~NativePixmapManager() {
66 } 74 }
67 75
68 NativePixmapManager* CreateStubNativePixmapManager() { 76 NativePixmapManager* CreateStubNativePixmapManager() {
69 return new StubNativePixmapManager; 77 return new StubNativePixmapManager;
70 } 78 }
71 79
72 } // namespace ui 80 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698