Skip to content

Commit

Permalink
Ozone: Remove unused GetProcessedPixmap API.
Browse files Browse the repository at this point in the history
We no longer use this API and hence remove it.

BUG=553264

Review URL: https://codereview.chromium.org/1588213002

Cr-Commit-Position: refs/heads/master@{#369621}
  • Loading branch information
kalyankondapally authored and Commit bot committed Jan 15, 2016
1 parent 143ce5d commit ae37c41
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 24 deletions.
5 changes: 0 additions & 5 deletions ui/ozone/platform/cast/surface_factory_cast.cc
Original file line number Diff line number Diff line change
Expand Up @@ -244,11 +244,6 @@ scoped_refptr<NativePixmap> SurfaceFactoryCast::CreateNativePixmap(
}
void SetProcessingCallback(
const ProcessingCallback& processing_callback) override {}
scoped_refptr<NativePixmap> GetProcessedPixmap(
gfx::Size target_size,
gfx::BufferFormat target_format) override {
return nullptr;
}
gfx::NativePixmapHandle ExportHandle() override {
return gfx::NativePixmapHandle();
}
Expand Down
4 changes: 2 additions & 2 deletions ui/ozone/platform/drm/gpu/drm_overlay_validator.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ struct OverlayCheck_Params;

class DrmOverlayValidator {
public:
explicit DrmOverlayValidator(DrmWindow* window,
ScanoutBufferGenerator* buffer_generator);
DrmOverlayValidator(DrmWindow* window,
ScanoutBufferGenerator* buffer_generator);
~DrmOverlayValidator();

// Tests if configurations |params| are compatible with |window_| and finds
Expand Down
6 changes: 0 additions & 6 deletions ui/ozone/platform/drm/gpu/gbm_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,6 @@ void GbmPixmap::SetProcessingCallback(
processing_callback_ = processing_callback;
}

scoped_refptr<NativePixmap> GbmPixmap::GetProcessedPixmap(
gfx::Size target_size,
gfx::BufferFormat target_format) {
return nullptr;
}

gfx::NativePixmapHandle GbmPixmap::ExportHandle() {
gfx::NativePixmapHandle handle;

Expand Down
3 changes: 0 additions & 3 deletions ui/ozone/platform/drm/gpu/gbm_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,6 @@ class GbmPixmap : public NativePixmap {
bool InitializeFromBuffer(const scoped_refptr<GbmBuffer>& buffer);
void SetProcessingCallback(
const ProcessingCallback& processing_callback) override;
scoped_refptr<NativePixmap> GetProcessedPixmap(
gfx::Size target_size,
gfx::BufferFormat target_format) override;

// NativePixmap:
void* GetEGLClientBuffer() const override;
Expand Down
5 changes: 0 additions & 5 deletions ui/ozone/platform/headless/headless_surface_factory.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,6 @@ class TestPixmap : public ui::NativePixmap {
}
void SetProcessingCallback(
const ProcessingCallback& processing_callback) override {}
scoped_refptr<NativePixmap> GetProcessedPixmap(
gfx::Size target_size,
gfx::BufferFormat target_format) override {
return nullptr;
}
gfx::NativePixmapHandle ExportHandle() override {
return gfx::NativePixmapHandle();
}
Expand Down
3 changes: 0 additions & 3 deletions ui/ozone/public/native_pixmap.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,6 @@ class NativePixmap : public base::RefCountedThreadSafe<NativePixmap> {
// Set callback function for the pixmap used for post processing.
virtual void SetProcessingCallback(
const ProcessingCallback& processing_callback) = 0;
virtual scoped_refptr<NativePixmap> GetProcessedPixmap(
gfx::Size target_size,
gfx::BufferFormat target_format) = 0;

// Export the buffer for sharing across processes.
// Any file descriptors in the exported handle are owned by the caller.
Expand Down

0 comments on commit ae37c41

Please sign in to comment.